[hamster-applet] added 'release' command instead of overriding dist, as the .page files are derived after all.



commit 4fd3dc6c8c2f4df8dcd6b269487c55aac7c7c365
Author: Toms Bauģis <toms baugis gmail com>
Date:   Tue Jun 8 13:46:15 2010 +0100

    added 'release' command instead of overriding dist, as
    the .page files are derived after all.

 NEWS    |    6 ++++++
 wscript |   24 ++++++++++++++++--------
 2 files changed, 22 insertions(+), 8 deletions(-)
---
diff --git a/NEWS b/NEWS
index ab74902..c656a57 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,10 @@
 ===============
+Version 2.31.3.1
+===============
+  * including generated help pages in the tarball so that they appear in
+    library.gnome.org
+
+===============
 Version 2.31.3
 ===============
   * dropped in-house global hotkey management in favour to Gnome's global
diff --git a/wscript b/wscript
index bd94ae9..da16265 100644
--- a/wscript
+++ b/wscript
@@ -67,15 +67,23 @@ def build(bld):
     bld.add_post_fun(post)
 
 
-def dist():
-    """overriding dist to include help pages
-       rather lame but effective. the pages are needed for library.gnome.org
+def copy_help(ctx):
+    import os
+    os.system('cp -R build/default/help/ .')
+
+def push_release(ctx):
+    """copies generated page files to sources so that they are packaged on dist
+       then creates the tarball and pushes to git master
+       TODO - this should depend and fail if distcheck fails. also it looks
+              suspiciously non-native
     """
-    # TODO - add dependency on build before dist
-    # TODO - maybe this can be done in a more elegant manner
+    tarball = dist(APPNAME, VERSION)
 
     import os
-    from Scripting import dist, build
-    os.system('cp -R build/default/help/ .')
+    os.system('scp %s tbaugis master gnome org:/home/users/tbaugis' % tarball)
+    os.system("ssh tbaugis master gnome org 'install-module %s'" % tarball)
 
-    dist(APPNAME, VERSION)
+def release(ctx):
+    """packaging a version"""
+    import Scripting
+    Scripting.commands += ['build', 'copy_help', 'push_release']



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]