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

Update build_version to add the option --build.

parent 8d21a8d1
No related branches found
No related tags found
1 merge request!25Release 0.9.0
......@@ -886,7 +886,7 @@ def which(cmd, localhost=False):
The list is empty when the command is not found.
"""
container = ARGS.docker_container
container = OPT.docker_container
# local host
if not container or localhost:
......@@ -911,7 +911,7 @@ def which(cmd, localhost=False):
if not is_running:
print "\n\tDocker container", container, "is not running !"
if ARGS.force_container:
if OPT.force_container:
sys.exit(1)
return []
......@@ -951,6 +951,11 @@ if __name__ == '__main__':
action="store_true",
help="build the API documentation in PDF.")
AGP.add_argument(
"-b", "--build",
action="store_true",
help="build javaScript libraries and documentation.")
AGP.add_argument(
"-c", "--compile",
action="store_true",
......@@ -1056,63 +1061,66 @@ if __name__ == '__main__':
"To be used with --commit-changelog. "
"Recommend to use --start-release.")
ARGS = AGP.parse_args()
OPT = AGP.parse_args()
if ARGS.ace:
if OPT.ace:
build_plugin_ace()
if ARGS.api_doc:
if OPT.api_doc:
sphinx("html", API)
if ARGS.api_pdf:
if OPT.api_pdf:
build_pdf(API)
if ARGS.compile:
if OPT.build:
build()
if OPT.compile:
compile_js()
if ARGS.commit_changelog:
if OPT.commit_changelog:
commit_change_log()
if ARGS.dbui:
if OPT.dbui:
build()
build_plugin_dbui()
if ARGS.extjs:
if OPT.extjs:
build_plugin_extjs()
if ARGS.jsduck:
if OPT.jsduck:
jsduck()
if ARGS.mathjax:
if OPT.mathjax:
build_plugin_mathjax()
if ARGS.reference_doc:
if OPT.reference_doc:
sphinx("html", REFERENCE)
if ARGS.reference_pdf:
if OPT.reference_pdf:
build_pdf(REFERENCE)
if ARGS.start_release:
if OPT.start_release:
start_release()
if ARGS.tag:
if OPT.tag:
tag()
if ARGS.user_doc:
if OPT.user_doc:
sphinx("html", USER)
if ARGS.user_pdf:
if OPT.user_pdf:
build_pdf(USER)
if ARGS.version:
if OPT.version:
print "\nThe current release is %s\n" % get_version()
if ARGS.web2py:
if ARGS.web2py == "dbui":
if OPT.web2py:
if OPT.web2py == "dbui":
build()
web2py(ARGS.web2py)
web2py(OPT.web2py)
if ARGS.write_release:
if OPT.write_release:
set_version(raw_input(MSG_RELEASE))
sys.exit(0)
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