forked from mobile-shell/mosh
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.sh
executable file
·50 lines (45 loc) · 899 Bytes
/
appveyor.sh
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
#!/bin/sh
#
# Cleanup for Appveyor peculiarities.
#
# Echo, eval, and error on shell commands.
eeval()
{
echo "$0: $*" >&2
eval "$@"
rv=$?
if [ $rv -ne 0 ]; then
echo "$0: failed, exitcode $rv"
exit $rv
fi
return 0
}
# We inherit a broken Windows path with a Windows Git.
PATH=/bin
# This supposedly fixes some failures.
exec 0</dev/null
# Mosh-specific environment
export LANG=en_US.UTF-8
case $1 in
before_build)
# This repo was checked out with Windows Git, repair it for Cygwin.
eeval git config --local core.symlinks true
eeval git clean --force --quiet -x -d
eeval git reset --hard
;;
build_script)
eeval ./autogen.sh
eeval ./configure --enable-compile-warnings=error --enable-examples
eeval make distcheck VERBOSE=1 V=1
;;
wait)
touch wait.lck
while [ -f wait.lck ]; do
sleep 10
done
;;
*)
echo "Fail: $0 $*"
exit 2
;;
esac