Commit 72098f38 authored by Bruce Momjian's avatar Bruce Momjian

Try to find cpp failure and report it.

parent b542fa1a
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.10 1998/04/06 00:22:16 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.11 1998/04/20 18:11:42 momjian Exp $
# #
# NOTES # NOTES
# non-essential whitespace is removed from the generated file. # non-essential whitespace is removed from the generated file.
...@@ -24,6 +24,12 @@ trap "rm -f /tmp/genbki.tmp" 0 1 2 3 15 ...@@ -24,6 +24,12 @@ trap "rm -f /tmp/genbki.tmp" 0 1 2 3 15
>/tmp/genbki.tmp >/tmp/genbki.tmp
PATH=$PATH:/lib:/usr/ccs/lib # to find cpp PATH=$PATH:/lib:/usr/ccs/lib # to find cpp
cpp /dev/null >/dev/null
if [ "$?" -ne 0 ]
then echo "Can't find cpp. Exiting." 1>&2
exit 1
fi
BKIOPTS='' BKIOPTS=''
if [ $? != 0 ] if [ $? != 0 ]
then then
...@@ -264,7 +270,7 @@ END { ...@@ -264,7 +270,7 @@ END {
' | \ ' | \
cpp $BKIOPTS | \ cpp $BKIOPTS | \
sed -e '/^[ ]*$/d' \ sed -e '/^[ ]*$/d' \
-e 's/[ ][ ]*/ /g' -e 's/[ ][ ]*/ /g' || exit 1
# send pg_description file contents to standard error # send pg_description file contents to standard error
cat /tmp/genbki.tmp 1>&2 cat /tmp/genbki.tmp 1>&2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment