Commit 4245e41c authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the option install in buildVersion.

parent d82b5399
......@@ -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 '\tSkip 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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment