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
Admin message
Gitlab has been updated. More info
here
and
there
.
Show more breadcrumbs
w2pext
plugin_dbui
Commits
ef76ea2c
Commit
ef76ea2c
authored
11 years ago
by
legac
Browse files
Options
Downloads
Patches
Plain Diff
Improve the logic within buildversion.
parent
32d75e2d
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
+27
-1
27 additions, 1 deletion
buildVersion.py
with
27 additions
and
1 deletion
buildVersion.py
+
27
−
1
View file @
ef76ea2c
...
...
@@ -56,7 +56,9 @@ NOW = datetime.datetime.now()
PACK_PLUGIN_URL
=
'
http://localhost:8000/%s/default/pack_plugin
'
%
APP
# basic commands
EPYDOC
=
'
/usr/bin/epydoc
'
GIT
=
'
/usr/bin/git
'
JSDUCK
=
os
.
path
.
expandvars
(
"
$HOME/bin/jsduck
"
)
YUICOMPRESSOR
=
os
.
path
.
expandvars
(
"
$HOME/lib/yuicompressor-2.4.8.jar
"
)
MSG_VERSION
=
'
Enter the new version:
'
...
...
@@ -67,6 +69,11 @@ def epydoc():
The HTML files are located in static/plugin_dbui/docs/epydoc
"""
if
not
os
.
path
.
exists
(
GIT
):
print
'
\n\t
The application epydoc is missing !
'
print
'
\t
Skip this step.
\n
'
return
# create the directory
if
not
os
.
path
.
exists
(
PYDOC
):
os
.
makedirs
(
PYDOC
)
...
...
@@ -117,6 +124,11 @@ def git():
"""
Commit and tag the current release.
"""
if
not
os
.
path
.
exists
(
GIT
):
print
'
\n\t
The application git is missing !
'
print
'
\t
Skip this step.
\n
'
return
version
=
get_version
()
# check tag in git
...
...
@@ -150,6 +162,11 @@ def jsduck():
The HTML files are located in static/plugin_dbui/docs/jsduck
"""
if
not
os
.
path
.
exists
(
JSDUCK
):
print
'
\n\t
The application jsduck is missing !
'
print
'
\t
Skip this step.
\n
'
return
# create the directory
if
not
os
.
path
.
exists
(
JSDOC
):
os
.
makedirs
(
JSDOC
)
...
...
@@ -217,7 +234,11 @@ def web2py():
"""
print
'
Build the web2py plugin binary file
'
raw_input
(
'
Check that the web2py service is running ? Type CR to continue.
'
)
rep
=
raw_input
(
'
Check that the web2py service is running ? Type CR to continue.
'
)
if
rep
:
print
'
\n\t
Skip this step.
\n
'
return
f
=
urllib
.
urlopen
(
PACK_PLUGIN_URL
)
s
=
f
.
read
()
...
...
@@ -232,6 +253,11 @@ def yuicompressor():
"""
Compresssed and minified the javascript library.
"""
if
not
os
.
path
.
exists
(
YUICOMPRESSOR
):
print
'
\n\t
The application yuicompressor is missing !
'
print
'
\t
Skip this step.
\n
'
return
# clean previous version
for
el
in
(
JSLIBDEBUG
,
JSLIBMIN
):
if
os
.
path
.
exists
(
el
):
...
...
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