From b48edd74d12c7d37514b298806e37a5dc9791f8d Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Wed, 14 Oct 1998 16:05:01 +0000 Subject: [PATCH] Make genbki.sh a configureable shell program to allow auto-detection of the proper cpp program. --- src/backend/catalog/{genbki.sh => genbki.sh.in} | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) rename src/backend/catalog/{genbki.sh => genbki.sh.in} (96%) diff --git a/src/backend/catalog/genbki.sh b/src/backend/catalog/genbki.sh.in similarity index 96% rename from src/backend/catalog/genbki.sh rename to src/backend/catalog/genbki.sh.in index 906fe504b8..3eb219e386 100644 --- a/src/backend/catalog/genbki.sh +++ b/src/backend/catalog/genbki.sh.in @@ -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