-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-release.bat
More file actions
36 lines (27 loc) · 899 Bytes
/
Copy pathbuild-release.bat
File metadata and controls
36 lines (27 loc) · 899 Bytes
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
@echo off
SETLOCAL
SET VER=%1
SET VC="C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VCExpress.exe"
@echo Building latest version
%VC% vc90\ikarus.sln /build Release
@echo Exporting from git
git archive --format=tar --prefix=ikarus-%VER%/ HEAD | tar -x
rm pax_global_header
rm -rf ../ikarus-%VER%/
cp bin/ikarus.exe ikarus-%VER%/release/ikarus.exe
if exist report/Ikarus-jb5950.pdf (cp report/Ikarus-jb5950.pdf ikarus-%VER%/Ikarus-jb5950.pdf)
mv ikarus-%VER%/ ../ikarus-%VER%/
pushd ..
@echo Removing/renaming internal files
mv ikarus-%VER%\release ikarus-%VER%\windows
rm ikarus-%VER%\.gitignore
rm ikarus-%VER%\build-release.bat
rm -r ikarus-%VER%\report
@echo Building zip archive
rm -f ikarus-%VER%.zip
rm -f ikarus-%VER%-noprefix.zip
cd ikarus-%VER%
zip -rq ..\ikarus-%VER%-noprefix.zip *
cd ..
zip -rq ikarus-%VER%.zip ikarus-%VER%\
popd