Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
6d969cab
Commit
6d969cab
authored
May 26, 2014
by
Petr Prikryl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winbuild/pack_the_distribution_for_windows.py minor updates
- it failed when one of the doxygen.exe was not present
parent
64f77432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
pack_the_distribution_for_windows.py
winbuild/pack_the_distribution_for_windows.py
+13
-11
No files found.
winbuild/pack_the_distribution_for_windows.py
View file @
6d969cab
#!
python2
#!python2
from
__future__
import
print_function
from
__future__
import
print_function
...
@@ -92,16 +92,18 @@ def copyBinaries(dist_dir, subdir):
...
@@ -92,16 +92,18 @@ def copyBinaries(dist_dir, subdir):
# Source file should exist.
# Source file should exist.
sdir
,
fname
=
getThisScriptPathAndName
()
sdir
,
fname
=
getThisScriptPathAndName
()
src
=
os
.
path
.
normpath
(
os
.
path
.
join
(
sdir
,
'..'
,
'bin'
,
subdir
,
'doxygen.exe'
))
src
=
os
.
path
.
normpath
(
os
.
path
.
join
(
sdir
,
'..'
,
'bin'
,
subdir
,
'doxygen.exe'
))
assert
os
.
path
.
isfile
(
src
)
if
os
.
path
.
isfile
(
src
):
# Destination directory must not exist. It must be created first.
# Destination directory must not exist. It must be created first.
dst_dir
=
os
.
path
.
normpath
(
os
.
path
.
join
(
dist_dir
,
'bin'
,
subdir
))
dst_dir
=
os
.
path
.
normpath
(
os
.
path
.
join
(
dist_dir
,
'bin'
,
subdir
))
assert
not
os
.
path
.
isdir
(
dst_dir
)
assert
not
os
.
path
.
isdir
(
dst_dir
)
os
.
makedirs
(
dst_dir
)
os
.
makedirs
(
dst_dir
)
# Copy the file.
# Copy the file.
print
(
"Copying '{}'"
.
format
(
src
))
print
(
"Copying '{}'"
.
format
(
src
))
shutil
.
copy2
(
src
,
dst_dir
)
shutil
.
copy2
(
src
,
dst_dir
)
else
:
print
(
"The binary '"
+
src
+
"'"
)
print
(
'was not found. It will not be present in the distribution.'
)
def
getBinariesZipBareName
():
def
getBinariesZipBareName
():
...
...
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