1999-04-01 03:18:52 -05:00
|
|
|
#! /bin/sh
|
|
|
|
|
1999-04-05 02:58:30 -04:00
|
|
|
SHELL=/bin/sh
|
|
|
|
export SHELL
|
|
|
|
|
1999-10-19 09:22:45 -04:00
|
|
|
if [ $# -eq 0 ] ; then
|
|
|
|
echo AutoGen-ing inclhack.sh
|
|
|
|
autogen inclhack.def
|
1999-04-01 03:18:52 -05:00
|
|
|
|
1999-10-19 09:22:45 -04:00
|
|
|
echo AutoGen-ing fixincl.x
|
|
|
|
autogen -T fixincl.tpl -b fixincl inclhack.def
|
1999-04-01 03:18:52 -05:00
|
|
|
|
1999-10-19 09:22:45 -04:00
|
|
|
echo AutoGen-ing fixincl.sh
|
|
|
|
autogen -DPROGRAM=1 -b fixincl inclhack.def
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if (autogen --help > /dev/null 2>&1) ; then : ; else
|
|
|
|
echo "AutoGen does not appear to be correctly installed."
|
|
|
|
echo "Please download and install:"
|
|
|
|
echo " ftp://sourceware.cygnus.com/pub/egcs/infrastructure/autogen.tar.gz"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
inclhack.def )
|
|
|
|
echo AutoGen-ing inclhack.sh
|
|
|
|
autogen inclhack.sh
|
|
|
|
;;
|
|
|
|
|
|
|
|
fixincl.x )
|
|
|
|
echo AutoGen-ing fixincl.x
|
|
|
|
autogen -T fixincl.tpl -b fixincl inclhack.def
|
|
|
|
;;
|
|
|
|
|
|
|
|
fixincl.sh )
|
|
|
|
echo AutoGen-ing fixincl.sh
|
|
|
|
autogen -DPROGRAM=1 -b fixincl inclhack.def
|
|
|
|
;;
|
|
|
|
|
|
|
|
* )
|
|
|
|
echo genfixes cannot create $1
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|