Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2pext
plugin_dbui
Commits
8a2ad3c2
Commit
8a2ad3c2
authored
12 years ago
by
LE GAC Renaud
Browse files
Options
Downloads
Patches
Plain Diff
Clean the code and improve the help.
parent
1defe5bd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildVersion.py
+5
-6
5 additions, 6 deletions
buildVersion.py
with
5 additions
and
6 deletions
buildVersion.py
+
5
−
6
View file @
8a2ad3c2
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment