Commit c34de8f8 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add protection building javascript libraries and documentation.

parent 2028d680
......@@ -43,8 +43,8 @@ DOCS = 'static/docs'
DOCSRC = 'docs'
EXTJSSRC = 'static/plugin_extjs/src'
JSDOC = opj(DOCS, 'jsduck')
JSLIBDEBUG = 'static/%s/dbui-debug.js' % APP
JSLIBMIN = 'static/%s/dbui-min.js' % APP
JSLIBDEBUG = 'static/%s-debug.js' % APP
JSLIBMIN = 'static/%s-min.js' % APP
JSLIBSRC = 'static/%s/src' % APP
LATEX = 'latex'
NOW = datetime.datetime.now()
......@@ -296,6 +296,10 @@ def compile_js():
print '\tSkip this step.\n'
return
if not os.path.exists(JSLIBSRC):
print 'No javascript library. Exit.'
return
# clean previous version
for item in (JSLIBDEBUG, JSLIBMIN):
if os.path.exists(item):
......@@ -400,6 +404,10 @@ def jsduck():
print '\tSkip this step.\n'
return
if not os.path.exists(JSLIBSRC):
print 'No javascript library. Exit.'
return
# create the directory
if not os.path.exists(JSDOC):
os.makedirs(JSDOC)
......
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