-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcreate-zip.bat
30 lines (30 loc) · 1.13 KB
/
create-zip.bat
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
set zippath="C:\Program Files\7-Zip"
set zx=%zippath%\7z.exe
set distfolder=dist
REM if not exist %isx% set errormsg=%isx% not found && goto errorhandler
%zx% a "-xr!r-packages" -tzip CanReg5.zip conf
%zx% a -tzip CanReg5.zip conf\tables\r\r-packages\*.tar.gz
%zx% a -tzip CanReg5.zip demo
%zx% a -tzip CanReg5.zip scripts
%zx% a -tzip CanReg5.zip CanReg.exe
copy doc\CanReg5-Instructions\CanReg5-Instructions.pdf doc\
%zx% a -tzip CanReg5.zip doc\CanReg5-Instructions.pdf
%zx% a -tzip CanReg5.zip changelog.txt
%zx% a -tzip CanReg5.zip changelog.html
%zx% a -tzip CanReg5-R-packages.zip conf/tables/r/r-packages
REM pull out translations and zip them
rsync -Rtrv --include "*/" --include "*.properties" --exclude "*" ./src/canreg/client/ ./translations/
%zx% a -tzip translations.zip translations\src
REM prepare distribution
cd %distfolder%
%zx% a -tzip ..\CanReg5.zip .
md web
copy ..\changelog.txt web\
copy ..\changelog.html web\
copy ..\version.txt web\
copy ..\doc\CanReg5-Instructions\CanReg5-Instructions.pdf web\
move ..\CanReg5.zip web\
move ..\CanReg5-R-packages.zip web\
move ..\translations.zip .\
cd ..
goto :eof