Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b48edd7

Browse files
author
Thomas G. Lockhart
committed
Make genbki.sh a configureable shell program to allow auto-detection
of the proper cpp program.
1 parent fe6d19f commit b48edd7

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/backend/catalog/genbki.sh renamed to src/backend/catalog/genbki.sh.in

+4-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
#
1212
# IDENTIFICATION
13-
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.13 1998/08/25 17:36:18 momjian Exp $
13+
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.1 1998/10/14 16:05:01 thomas Exp $
1414
#
1515
# NOTES
1616
# non-essential whitespace is removed from the generated file.
@@ -23,20 +23,14 @@ trap "rm -f /tmp/genbki.tmp" 0 1 2 3 15
2323
# make sure it is empty
2424
>/tmp/genbki.tmp
2525

26-
PATH=$PATH:/lib:/usr/ccs/lib:/usr/ccs/lbin # to find cpp
27-
cpp /dev/null >/dev/null 2>&1
28-
if [ "$?" -ne 0 ]
29-
then echo "Can't find cpp. Exiting." 1>&2
30-
exit 1
31-
fi
32-
33-
BKIOPTS=''
3426
if [ $? != 0 ]
3527
then
3628
echo `basename $0`: Bad option
3729
exit 1
3830
fi
3931

32+
BKIOPTS=''
33+
4034
for opt in $*
4135
do
4236
case $opt in
@@ -268,7 +262,7 @@ END {
268262
}
269263
}
270264
' | \
271-
cpp $BKIOPTS | \
265+
@CPP@ @CPPSTDIN@ $BKIOPTS | \
272266
sed -e '/^[ ]*$/d' \
273267
-e 's/[ ][ ]*/ /g' || exit 1
274268

0 commit comments

Comments
 (0)