-
Notifications
You must be signed in to change notification settings - Fork 5
/
Archive.bat
48 lines (40 loc) · 1.07 KB
/
Archive.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
del *.zip
:: Create dolo-matlab executable for Windows
pyinstaller --onefile --clean --paths=.\Python\dolo .\Python\dolo\bin\dolo-matlab
copy /Y dist\dolo-matlab.exe Python\dolo\bin
rmdir /S /Q dist
rmdir /S /Q build
del *.spec
:: Create empty folders
md recs-archive
md recs-archive\private
md recs-archive\html
md recs-archive\demos
md recs-archive\Python
md recs-archive\recipes
:: Generate RECS documentation
cd html
matlab -wait -nosplash -r addpath('%1');startup;Publish_recs_help;clear;Publish_recs_help(1);exit
cd ..
:: Convert README.md to html
pandoc README.md -s -o README.html
:: Copy all files
copy /Y . recs-archive
copy /Y private recs-archive\private
robocopy html recs-archive\html /E
copy /Y demos recs-archive\demos
robocopy Python\dolo recs-archive\Python\dolo /E
copy /Y recipes recs-archive\recipes
:: Clean the files and compress
cd recs-archive
del /S .git*
del /S logfile.tmp
del /S *.mex*
del Archive.bat
rename README.md README.txt
del recsInstall.m
rmdir /S /Q Python\dolo\.git
7z a ..\recs-%2.zip .
cd ..
:: Clean temporary folder
rmdir /S /Q recs-archive