Debian Codegraph @

debian/hscolour-wrapper

raw
1 #!/bin/sh
2
3 # A wrapper around the HsColour executable.
4
5 # If the real HsColour exists, run it.
6 if test -x dist/build/HsColour/HsColour ; then
7 exec dist/build/HsColour/HsColour "$@"
8 elif test -x dist-ghc/build/HsColour/HsColour ; then
9 exec dist-ghc/build/HsColour/HsColour "$@"
10 fi
11
12 # If the real HsColour doesn't exist, at least do something sensible when
13 # asked for the version. haddock asks for version >= 1.8 so return 1.9.
14 case "$1" in
15 -version|--version)
16 echo 'HsColour 1.9'
17 exit 0
18 ;;
19 *)
20 ;;
21 esac
22
23 # Should never get to here so exit with error.
24 echo "hscolour-wrapper : $@"
25 exit 1