Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
4245e41c
Commit
4245e41c
authored
Mar 22, 2015
by
LE GAC Renaud
Browse files
Add the option install in buildVersion.
parent
d82b5399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
buildVersion.py
buildVersion.py
+17
-4
No files found.
buildVersion.py
View file @
4245e41c
...
...
@@ -252,7 +252,7 @@ def set_version(version):
os
.
remove
(
fn
)
def
sphinx
():
def
sphinx
(
force_pdf
=
False
):
"""Generate the Sphinx documentation.
"""
...
...
@@ -275,9 +275,10 @@ def sphinx():
print
'
\t
Skip this step.
\n
'
return
rep
=
raw_input
(
"Produce the sphinx pdf (y/N) [n]:"
)
if
not
rep
.
lower
().
startswith
(
"y"
):
return
if
not
force_pdf
:
rep
=
raw_input
(
"Produce the sphinx pdf (y/N) [n]:"
)
if
not
rep
.
lower
().
startswith
(
"y"
):
return
if
not
os
.
path
.
exists
(
PDFDOC
):
os
.
makedirs
(
PDFDOC
)
...
...
@@ -338,6 +339,11 @@ if __name__ == '__main__':
dest
=
"git"
,
help
=
"commit and tag the current release."
)
ops
.
add_option
(
"-i"
,
"--install"
,
action
=
"store_true"
,
dest
=
"install"
,
help
=
"compile javascript and generate documentations."
)
ops
.
add_option
(
"-j"
,
"--jsduck"
,
action
=
"store_true"
,
dest
=
"jsduck"
,
...
...
@@ -363,6 +369,7 @@ if __name__ == '__main__':
epydoc
=
False
,
get
=
False
,
git
=
False
,
install
=
False
,
jsduck
=
False
,
sphinx
=
False
,
version
=
False
)
...
...
@@ -386,6 +393,12 @@ if __name__ == '__main__':
if
opt
.
epydoc
:
epydoc
()
if
opt
.
install
:
epydoc
()
jsduck
()
sphinx
(
force_pdf
=
True
)
compile
()
if
opt
.
jsduck
:
jsduck
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment