summaryrefslogtreecommitdiff
path: root/distrib/fake-happy
blob: d53152f5c2945e0c90f49a66a3c37420b73d7844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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