-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakeAll
executable file
·52 lines (43 loc) · 891 Bytes
/
MakeAll
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
#!/bin/bash
clear
HOME_DIR="$(dirname $(readlink -f $0))"
echo "Building in "${HOME_DIR}""
pushd ${HOME_DIR}
pausing() {
x=5
echo -n Pausing ...
while [ $x -gt 0 ]; do
sleep 1s
echo -n " $x"
x=$(( $x - 1 ))
done
echo
}
# Do 64-bit builds
echo make -f Makefile-x64.mk all BITNESS=64
make -f Makefile-x64.mk all BITNESS=64
if [ $? -eq 0 ]; then
echo "64-bit Make successfully completed"
echo
else
echo "64-bit Make failed" >&2
read -p "Press any key to continue... " -n1 -s exit 1
exit 1
fi
OS=`uname -s`
if [ ${OS} == Linux ]; then
exit 0
fi
# Do 32-bit builds
echo make -f Makefile-x32.mk all BITNESS=32
make -f Makefile-x32.mk all BITNESS=32
if [ $? -eq 0 ]
then
echo "32-bit Make successfully completed"
pausing
exit 0
else
echo "32-bit Make failed" >&2
read -p "Press any key to continue... " -n1 -s exit 1
exit 1
fi