diff options
author | ken <unknown> | 2001-07-23 22:22:58 +0000 |
---|---|---|
committer | ken <unknown> | 2001-07-23 22:22:58 +0000 |
commit | b123b6eba6727deacb69abc6589bbe6cee2f3c81 (patch) | |
tree | 3b243d10796201fe54aa44665520e83b6f1ebea5 /distrib/fake-happy | |
parent | 52fe4859e9343c023f00080bc34d77d9a7d17a0f (diff) | |
download | haskell-b123b6eba6727deacb69abc6589bbe6cee2f3c81.tar.gz |
[project @ 2001-07-23 22:22:58 by ken]
Added a helper script "fake-happy" that fakes "happy -v" output.
It is useful for bootstrapping on new platforms.
Diffstat (limited to 'distrib/fake-happy')
-rw-r--r-- | distrib/fake-happy | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/distrib/fake-happy b/distrib/fake-happy new file mode 100644 index 0000000000..d53152f5c2 --- /dev/null +++ b/distrib/fake-happy @@ -0,0 +1,20 @@ +#!/bin/sh +# +# This is a script that simulates the "-v" output of Happy 1.10. +# It is useful for running configure on a system without Happy. +# (You can set the environment variable HappyCmd=path/to/fake-happy +# to fool configure into thinking that it has found Happy here.) + +if [ "$1" = "-v" ]; then +cat <<'END' +Happy Version 1.10 Copyright (c) 1993-1996 Andy Gill, Simon Marlow (c) 1997-2001 Simon Marlow + +Happy is a Yacc for Haskell, and comes with ABSOLUTELY NO WARRANTY. +This program is free software; you can redistribute it and/or modify +it under the terms given in the file 'LICENSE' distributed with +the Happy sources. +END +else +echo Fake happy is not happy! >&2 +exit 3 +fi |