Make the shell tests more portable.
Cat's Eye Technologies
8 years ago
0 | 0 | #!/bin/sh |
1 | 1 | |
2 | if [ -z `which ghc` -a -z x`which runhugs` ]; then | |
2 | if [ x`which ghc` = x -a x`which runhugs` = x ]; then | |
3 | 3 | echo "Neither ghc nor runhugs found on search path." |
4 | 4 | exit 1 |
5 | 5 | fi |
6 | 6 | |
7 | 7 | mkdir -p bin |
8 | 8 | |
9 | if [ -z `which ghc` -o ! -z $USE_HUGS ]; then | |
9 | if [ x`which ghc` = x -o ! x$USE_HUGS = x ]; then | |
10 | 10 | # create script to run with Hugs |
11 | 11 | cat >bin/iphi <<'EOF' |
12 | 12 | #!/bin/sh |