blob: 29cc8b71c65a826adf2cb4d1af6914469e3d38f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
CMD="$1"
if [[ -z "${CMD}" ]]; then
export CMD="default"
fi
mkdir build
# this need for some outdated os
mkdir m4
autoreconf -i
cd build
if [[ "${CMD}" == "default" ]]; then
../configure --enable-sanitize
elif [[ "${CMD}" == "old" ]]; then
../configure
elif [[ "${CMD}" == "gprof" ]]; then
../configure --enable-gprof
fi
make -j3
export RET=$?
cd -
exit $RET
|