Make genbki.sh a configureable shell program to allow auto-detection

of the proper cpp program.
This commit is contained in:
Thomas G. Lockhart 1998-10-14 16:05:01 +00:00
parent fe6d19f15f
commit b48edd74d1
1 changed files with 4 additions and 10 deletions

View File

@ -10,7 +10,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.13 1998/08/25 17:36:18 momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.1 1998/10/14 16:05:01 thomas Exp $
#
# NOTES
# non-essential whitespace is removed from the generated file.
@ -23,20 +23,14 @@ trap "rm -f /tmp/genbki.tmp" 0 1 2 3 15
# make sure it is empty
>/tmp/genbki.tmp
PATH=$PATH:/lib:/usr/ccs/lib:/usr/ccs/lbin # to find cpp
cpp /dev/null >/dev/null 2>&1
if [ "$?" -ne 0 ]
then echo "Can't find cpp. Exiting." 1>&2
exit 1
fi
BKIOPTS=''
if [ $? != 0 ]
then
echo `basename $0`: Bad option
exit 1
fi
BKIOPTS=''
for opt in $*
do
case $opt in
@ -268,7 +262,7 @@ END {
}
}
' | \
cpp $BKIOPTS | \
@CPP@ @CPPSTDIN@ $BKIOPTS | \
sed -e '/^[ ]*$/d' \
-e 's/[ ][ ]*/ /g' || exit 1