-
Notifications
You must be signed in to change notification settings - Fork 5
/
release.sh
executable file
·74 lines (54 loc) · 1.26 KB
/
release.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
66
67
68
69
70
71
72
73
#!/bin/sh
cd `dirname $0`
DIRS="
bin
bin/TOWNS
bin/PC-98
bin/AT
"
for d in $DIRS; do
if [ ! -e "$d" ]; then
mkdir $d
fi
rm -f "$d/free386.com"
done
#--------------------------------------------------------------------
# make
#--------------------------------------------------------------------
cd src
make -f makefile.lin clean
make -f makefile.lin BUILD_TARGET=TOWNS RELEASE=1
echo mv ../free386.com ../bin/TOWNS
mv ../free386.com ../bin/TOWNS
echo
# for PC-98
make -f makefile.lin clean
make -f makefile.lin BUILD_TARGET=PC_98 RELEASE=1
echo mv ../free386.com ../bin/PC-98
mv ../free386.com ../bin/PC-98
echo
# for PC/AT
make -f makefile.lin clean
make -f makefile.lin BUILD_TARGET=AT RELEASE=1
echo mv ../free386.com ../bin/AT
mv ../free386.com ../bin/AT
echo
# for DOS general
make -f makefile.lin clean
make -f makefile.lin BUILD_TARGET=gen RELEASE=1
echo mv ../free386.com ../bin
mv ../free386.com ../bin
echo
# cleanup
make -f makefile.lin clean
rm -f ../free386.map
cd ..
#--------------------------------------------------------------------
# check
#--------------------------------------------------------------------
echo
for d in $DIRS; do
if [ ! -e "$d/free386.com" ]; then
echo "$d/free386.com does not exists!"
fi
done