File: create_archive.bat.in

package info (click to toggle)
openstructure 2.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,256 kB
  • sloc: cpp: 188,571; python: 36,686; ansic: 34,298; fortran: 3,275; sh: 312; xml: 146; makefile: 29
file content (31 lines) | stat: -rw-r--r-- 1,587 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@ECHO OFF
REM create a zip archive for deployment on windows
REM no registry entries
REM no PATHs will be changed except in the DNG session
REM 
REM Author Juergen Haas
REM
set inst_dir=openstructure@OST_VERSION@
set archive_name=OpenStructureWin32
if exist "%inst_dir%" rmdir /S /Q "%inst_dir%" 
if exist %archive_name%.zip del %archive_name%.zip*.*
REM dir /S %inst_dir%
mkdir "%inst_dir%\share\openstructure\examples"
mkdir "%inst_dir%\lib\site-packages"
mkdir "%inst_dir%\bin"
xcopy  /E /I /Y /EXCLUDE:exclude_file_types  ..\..\examples "%inst_dir%\share\openstructure\examples"
xcopy  /E /I /Y /EXCLUDE:exclude_file_types ..\..\stage\share "%inst_dir%\share\"
REM xcopy  /E /I ..\..\website\html "%inst_dir%\share\doc"
copy  d:\programs\bin\python.exe "%inst_dir%\bin"
copy ..\README.html "%inst_dir%" 
copy ..\..\graphics\favicon.ico "%inst_dir%\share"
copy dng.bat "%inst_dir%" 
xcopy  /E /I /Y /EXCLUDE:excludes+exclude_file_types d:\programs\lib "%inst_dir%\lib"
xcopy  /E /I /Y /EXCLUDE:excludes+exclude_file_types  ..\..\stage\lib "%inst_dir%\lib"
xcopy /E /I /Y /EXCLUDE:excludes+exclude_file_types ..\..\stage\bin "%inst_dir%\bin"
set PATH="c:\Program Files (x86)"\7-Zip\;%PATH%
REM 7z a -r -t7z %archive_name% "%inst_dir%" > log
REM if exist %archive_name%.7z copy /b 7zS.sfx + config.txt + %archive_name%.7z %archive_name%.exe
if exist \TMTools\TMalign.exe copy /B \TMTools\TMalign.exe "%inst_dir%\bin\Release"
if exist \TMTools\TMscore.exe copy /B \TMTools\TMscore.exe "%inst_dir%\bin\Release"
7z a -r -tzip %archive_name% "%inst_dir%" > log