diff options
author | Bruce Korb <autogen@linuxbox.com> | 1999-10-19 13:22:45 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 1999-10-19 13:22:45 +0000 |
commit | db025289c4d6d4d798c3cc80c118b84ba13b6c76 (patch) | |
tree | e94b9f109e679de5254141f785b29f14d54a84a5 /gcc/fixinc/genfixes | |
parent | 0c70c30f29b27ba2020262a8a77f516403b8c5ca (diff) | |
download | gcc-db025289c4d6d4d798c3cc80c118b84ba13b6c76.zip gcc-db025289c4d6d4d798c3cc80c118b84ba13b6c76.tar.gz gcc-db025289c4d6d4d798c3cc80c118b84ba13b6c76.tar.bz2 |
use genfixes within Makefile.in and move comments to README
From-SVN: r30086
Diffstat (limited to 'gcc/fixinc/genfixes')
-rwxr-xr-x | gcc/fixinc/genfixes | 48 |
1 files changed, 42 insertions, 6 deletions
diff --git a/gcc/fixinc/genfixes b/gcc/fixinc/genfixes index 18b042a..25964a0e 100755 --- a/gcc/fixinc/genfixes +++ b/gcc/fixinc/genfixes @@ -3,11 +3,47 @@ SHELL=/bin/sh export SHELL -echo AutoGen-ing inclhack.sh -autogen inclhack.def +if [ $# -eq 0 ] ; then + echo AutoGen-ing inclhack.sh + autogen inclhack.def -echo AutoGen-ing fixincl.x -autogen -T fixincl.tpl -b fixincl inclhack.def + echo AutoGen-ing fixincl.x + autogen -T fixincl.tpl -b fixincl inclhack.def -echo AutoGen-ing fixincl.sh -autogen -DPROGRAM=1 -b fixincl inclhack.def + 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 |