From 1682c362a3d58fa962db6febaaf3a32c2b9ba5ae Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 25 Aug 1998 17:36:18 +0000 Subject: [PATCH] Can someone please apply this portability patch to genbki.sh ? (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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/catalog/genbki.sh b/src/backend/catalog/genbki.sh index 43164c84df..906fe504b8 100644 --- a/src/backend/catalog/genbki.sh +++ b/src/backend/catalog/genbki.sh @@ -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