-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmake-bindist_win32.sh
65 lines (51 loc) · 1.34 KB
/
make-bindist_win32.sh
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
# based on make-bindist_win32.sh from VICE 3.1
# Written by
# Marco van den Heuvel <[email protected]>
STRIP=$1
TOPSRCDIR=$2
ZIPKIND=$3
EXECUTABLES="1oom_classic_sdl1 1oom_classic_sdl2 1oom_cmdline 1oom_gfxconv 1oom_lbxedit 1oom_lbxview_sdl1 1oom_lbxview_sdl2 1oom_pbxdump 1oom_pbxmake 1oom_saveconv"
for i in $EXECUTABLES
do
if [ ! -e src/$i.exe ]
then
echo Error: file $i not found, do a \"make\" first
exit 1
fi
done
if [ -e $TOPSRCDIR/.git ]
then
VERSIONSTR=`git -C $TOPSRCDIR describe --tags`
else
VERSIONSTR=vUnknown
fi
PACKAGESTR=1oom-$VERSIONSTR-win32
BINDISTDIR=$PACKAGESTR
ZIPNAME=$PACKAGESTR.zip
mkdir $BINDISTDIR
mkdir $BINDISTDIR/doc
echo $PACKAGESTR > $BINDISTDIR/1version.txt
for i in $EXECUTABLES
do
$STRIP src/$i.exe
cp src/$i.exe $BINDISTDIR
done
cp $TOPSRCDIR/doc/*.txt $BINDISTDIR/doc
cp $TOPSRCDIR/README.md $BINDISTDIR/1README.txt
cp $TOPSRCDIR/COPYING $BINDISTDIR/1COPYING.txt
unix2dos -q $BINDISTDIR/*.txt $BINDISTDIR/doc/*.txt
if [ -e extrabindist_common ]
then
cp extrabindist_common/* $BINDISTDIR
fi
if [ -e extrabindist_win32 ]; then
cp extrabindist_win32/* $BINDISTDIR
fi
if test x"$ZIPKIND" = "xzip"; then
zip -r -9 -q $ZIPNAME $BINDISTDIR || die
echo zip $ZIPNAME created
rm -f -r $BINDISTDIR
else
echo dir $BINDISTDIR created
fi