File: mkwininst.sh

package info (click to toggle)
oolite 1.65-6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,532 kB
  • ctags: 1,504
  • sloc: objc: 56,004; ansic: 1,201; python: 1,086; java: 267; sh: 259; perl: 259; makefile: 65; xml: 39
file content (38 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (3)
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
# Assumed to be running in trunk

export SRC="/c/Program Files/Oolite"
export DST=$GNUSTEP_LOCAL_ROOT/oolite/tmp
export VER=`awk -- '/SoftwareVersion/ { print $2 }' autopackage/default.apspec`
echo building: $VER

if [ -d $DST ]; then
	echo "removing old setup files"
	rm -rf $DST
fi

mkdir $DST
mkdir $DST/oolite.app
mkdir $DST/AddOns

echo "coping existing installation to setup folder"
cp "$SRC/"* $DST
cp -r "$SRC/oolite.app/"* $DST/oolite.app

echo "cleaning up unwanted files"
rm $DST/*.txt
rm $DST/*.exe
rm $DST/*.bat

rm -rf $DST/oolite.app/GNUstep/Defaults/.GNUstepDefaults
rm -rf $DST/oolite.app/oolite-saves/*

echo "making Oolite"
make

echo "copying new build to setup folder"
cp -r oolite.app/* $DST/oolite.app
rm $DST/oolite.app/oolite.exe.a

echo "making installer"
cd installers/win32
"/c/Program Files/NSIS/makensis" oolite.nsi