Skip to content
Snippets Groups Projects
Commit 8a2ad3c2 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Clean the code and improve the help.

parent 1defe5bd
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment