]> granicus.if.org Git - postgresql/commitdiff
Can someone please apply this portability patch to genbki.sh ?
authorBruce Momjian <bruce@momjian.us>
Tue, 25 Aug 1998 17:36:18 +0000 (17:36 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 25 Aug 1998 17:36:18 +0000 (17:36 +0000)
(Mark or Bruce?) It fixes a problem when cpp gives a warning when
precompiling /dev/null like:  "/dev/null", line 1: 1506-229 (W)
File is empty.  This leads to a hangup when doing the description
load during initdb, since stderr also ends up in the global1.description
and local1_template1.description

stderr has to be redirected to /dev/null:

Andreas Zeugswetter

src/backend/catalog/genbki.sh

index 43164c84dfa514d8c5afc19191d513f0caa7cbfd..906fe504b8775244d5930d7d6dbf71fe0967f5cf 100644 (file)
@@ -10,7 +10,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.12 1998/04/21 16:18:30 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.13 1998/08/25 17:36:18 momjian Exp $
 #
 # NOTES
 #    non-essential whitespace is removed from the generated file.
@@ -24,7 +24,7 @@ trap "rm -f /tmp/genbki.tmp" 0 1 2 3 15
 >/tmp/genbki.tmp
 
 PATH=$PATH:/lib:/usr/ccs/lib:/usr/ccs/lbin             # to find cpp
-cpp /dev/null >/dev/null
+cpp /dev/null >/dev/null 2>&1
 if [ "$?" -ne 0 ]
 then   echo "Can't find cpp.  Exiting." 1>&2
        exit 1