summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-22 01:44:50 -0400
committerjoe <joe@jerkface.net>2018-06-22 01:44:50 -0400
commitbabb35615121227e0ad2123d211fd138b6fe55c0 (patch)
treeb3fe226c5dd68f81304c547c6c06347399d21122 /g
parente8446341d0dbe9b466571fa10875141ed22fbb47 (diff)
Fix build script.
Diffstat (limited to 'g')
-rwxr-xr-xg10
1 files changed, 9 insertions, 1 deletions
diff --git a/g b/g
index ca17ec88..b5cdc09b 100755
--- a/g
+++ b/g
@@ -2,7 +2,14 @@
2 2
3rootname=$(cat /etc/debian_chroot 2>/dev/null) 3rootname=$(cat /etc/debian_chroot 2>/dev/null)
4echo $PATH | grep '\.stack' >/dev/null && rootname="stack" 4echo $PATH | grep '\.stack' >/dev/null && rootname="stack"
5BUILDB=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build 5BUILDB=
6for b in build/b/Presence/monitortty.o .stack-work/dist/x86_64-linux/Cabal-*/build/Presence/monitortty.o; do
7 if [ -f $b ]; then
8 BUILDB=$(dirname $(dirname $b))
9 break
10 fi
11done
12[ -z "$BUILDB" ] && { echo "Where is monitortty.o?"; exit 1; }
6 13
7warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes" 14warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes"
8exts="-XOverloadedStrings -XRecordWildCards" 15exts="-XOverloadedStrings -XRecordWildCards"
@@ -28,6 +35,7 @@ cd "$root"
28 35
29me=${0##*/} 36me=${0##*/}
30me=${me%.*} 37me=${me%.*}
38set -x
31ghc -threaded \ 39ghc -threaded \
32 $hide \ 40 $hide \
33 $exts \ 41 $exts \