From 8a2ad3c27d7fd195b8905534fceb182b57288658 Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <legac@cppm.in2p3.fr> Date: Mon, 8 Oct 2012 19:13:33 +0200 Subject: [PATCH] Clean the code and improve the help. --- buildVersion.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/buildVersion.py b/buildVersion.py index 3cf234ce..ebfe98aa 100755 --- a/buildVersion.py +++ b/buildVersion.py @@ -54,8 +54,7 @@ PACK_PLUGIN_URL = 'http://localhost:8000/%s/default/pack_plugin' % APP # basic commands GIT = '/usr/bin/git' -YUICOMPRESSOR = os.path.expandvars("$HOME/lib/yuicompressor-2.4.6/build/yuicompressor-2.4.6.jar") -WEB2PY = os.path.expandvars('$HOME/myweb/web2py/web2py.py') +YUICOMPRESSOR = os.path.expandvars("$HOME/lib/yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar") def clean(): @@ -188,7 +187,7 @@ def yuicompressor(): if __name__ == '__main__': # check that basic commands are there - for cmd in (GIT, YUICOMPRESSOR, WEB2PY): + for cmd in (GIT, YUICOMPRESSOR): if not os.path.exists(cmd): print '\n\t%s application is missing !' % cmd sys.exit(1) @@ -204,7 +203,7 @@ if __name__ == '__main__': ops.add_option("-g", "--git", action="store_true", dest= "git", - help= "run the git step.") + help= "commit and tag the current release.") ops.add_option("-r", "--release", action="store_true", @@ -219,12 +218,12 @@ if __name__ == '__main__': ops.add_option("-y", "--yuicompressor", action="store_true", dest= "yuicompressor", - help= "run the yuicompressor step.") + help= "compressed and minified the javascript libraries.") ops.add_option("-w", "--web2py", action="store_true", dest= "web2py", - help= "run the web2py step.") + help= "pack the web2py plugin.") ops.set_defaults(clean=False, get=False, -- GitLab