summaryrefslogtreecommitdiffstats
path: root/maintenance/build.sh
blob: 0d2a846ae1613efa6ad84b0e0fe3594a2d452ad3 (plain)
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
#!/bin/sh

basedir="$(dirname "$0")"
[ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"

awlsim_base="$basedir/.."

set -e

if ! [ -x "$awlsim_base/awlsim-test" -a -x "$awlsim_base/setup.py" ]; then
	echo "basedir sanity check failed"
	exit 1
fi

cd "$awlsim_base"
python2 ./setup.py build &
python2_build_pid=$!
python3 ./setup.py build &
python3_build_pid=$!
if ! wait $python2_build_pid; then
	echo "Python 2 build FAILED!"
	exit 1
fi
if ! wait $python3_build_pid; then
	echo "Python 3 build FAILED!"
	exit 1
fi
echo
echo "build done."
exit 0
bues.ch cgit interface