summaryrefslogtreecommitdiffstats
path: root/contrib/mingw/ba-wrap.sh
blob: be731966593914f2cef56d7fd4f39b8e3609e9be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
source=$(dirname $0)
if [ "$source" = "." ]; then
  source=$(pwd)
fi
echo
echo "             DO NOT CLOSE    DO NOT CLOSE"
echo
echo "Warning: this command window will automatically close."
echo
echo "Build output: $source/at-log.txt"
echo
$source/build-autotools.sh $* 2>&1 >> $source/at-log.txt
ec=$?
if [ $ec -ne 0 ]; then
  echo "ERROR: code '$ec'. Press Any Key to continue"
  read
fi
exit $ec