File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 10
10
#
11
11
#
12
12
# IDENTIFICATION
13
- # $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.10 1998/04/06 00:22:16 momjian Exp $
13
+ # $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.11 1998/04/20 18:11:42 momjian Exp $
14
14
#
15
15
# NOTES
16
16
# 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
24
> /tmp/genbki.tmp
25
25
26
26
PATH=$PATH :/lib:/usr/ccs/lib # to find cpp
27
+ cpp /dev/null > /dev/null
28
+ if [ " $? " -ne 0 ]
29
+ then echo " Can't find cpp. Exiting." 1>&2
30
+ exit 1
31
+ fi
32
+
27
33
BKIOPTS=' '
28
34
if [ $? != 0 ]
29
35
then
@@ -264,7 +270,7 @@ END {
264
270
' | \
265
271
cpp $BKIOPTS | \
266
272
sed -e ' /^[ ]*$/d' \
267
- -e ' s/[ ][ ]*/ /g'
273
+ -e ' s/[ ][ ]*/ /g' || exit 1
268
274
269
275
# send pg_description file contents to standard error
270
276
cat /tmp/genbki.tmp 1>&2
You can’t perform that action at this time.
0 commit comments