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
limbra
limbra
Commits
c34de8f8
Commit
c34de8f8
authored
Apr 28, 2015
by
LE GAC Renaud
Browse files
Add protection building javascript libraries and documentation.
parent
2028d680
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
build_version.py
build_version.py
+10
-2
No files found.
build_version.py
View file @
c34de8f8
...
...
@@ -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
'
\t
Skip 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
'
\t
Skip 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
)
...
...
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