-
Notifications
You must be signed in to change notification settings - Fork 108
/
buildall
executable file
·63 lines (48 loc) · 2.22 KB
/
buildall
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
#!/bin/bash
# *****************************************************************************
[[ $# == 0 || $1 == --help ]] && {
echo "usage:"
echo "./buildall <gcc-name> ..."
exit 1
}
GCC_NAME=$1
shift
VERNUM=$(echo $GCC_NAME | sed 's|gcc-||;s|\.||g')
[[ $VERNUM == trunk ]] && {
VERNUM=1200
}
BUILDROOT=/c/mingw${VERNUM}
# *****************************************************************************
MARKER1=mingw-$VERNUM-x86_64-posix-sjlj.flag
[[ ! -e $MARKER1 ]] && {
./build --mode=$GCC_NAME --buildroot=$BUILDROOT $@ --threads=posix --exceptions=sjlj --arch=x86_64 --bin-compress && touch $MARKER1 || exit 1
}
MARKER2=mingw-$VERNUM-i686-posix-sjlj.flag
[[ ! -e $MARKER2 ]] && {
./build --mode=$GCC_NAME --buildroot=$BUILDROOT $@ --threads=posix --exceptions=sjlj --arch=i686 --bin-compress && touch $MARKER2 || exit 1
}
MARKER3=mingw-$VERNUM-i686-posix-dwarf.flag
[[ ! -e $MARKER3 ]] && {
./build --mode=$GCC_NAME --buildroot=$BUILDROOT $@ --threads=posix --exceptions=dwarf --arch=i686 --bin-compress && touch $MARKER3 || exit 1
}
MARKER4=mingw-$VERNUM-x86_64-posix-seh.flag
[[ ! -e $MARKER4 ]] && {
./build --mode=$GCC_NAME --buildroot=$BUILDROOT $@ --threads=posix --exceptions=seh --arch=x86_64 --bin-compress && touch $MARKER4 || exit 1
}
MARKER5=mingw-$VERNUM-i686-win32-sjlj.flag
[[ ! -e $MARKER5 ]] && {
./build --mode=$GCC_NAME --buildroot=$BUILDROOT $@ --threads=win32 --exceptions=sjlj --arch=i686 --bin-compress && touch $MARKER5 || exit 1
}
MARKER6=mingw-$VERNUM-x86_64-win32-sjlj.flag
[[ ! -e $MARKER6 ]] && {
./build --mode=$GCC_NAME --buildroot=$BUILDROOT $@ --threads=win32 --exceptions=sjlj --arch=x86_64 --bin-compress && touch $MARKER6 || exit 1
}
MARKER7=mingw-$VERNUM-x86_64-win32-seh.flag
[[ ! -e $MARKER7 ]] && {
./build --mode=$GCC_NAME --buildroot=$BUILDROOT $@ --threads=win32 --exceptions=seh --arch=x86_64 --bin-compress && touch $MARKER7 || exit 1
}
MARKER8=mingw-$VERNUM-i686-win32-dwarf.flag
[[ ! -e $MARKER8 ]] && {
./build --mode=$GCC_NAME --buildroot=$BUILDROOT $@ --threads=win32 --exceptions=dwarf --arch=i686 --bin-compress --src-compress $([[ $@ == *"--mingw-upload"* ]] && echo --src-upload) && touch $MARKER8 || exit 1
}
# *****************************************************************************