]> granicus.if.org Git - postgresql/commitdiff
The Watcom preprocessor adds a space at the start of each line. Therefore
authorBruce Momjian <bruce@momjian.us>
Tue, 22 May 2001 12:06:51 +0000 (12:06 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 22 May 2001 12:06:51 +0000 (12:06 +0000)
the output of "egrep '^[0-9]' " is empty. Changing the pattern to
"egrep '^[ ]*[0-9]" generates the correct file.

Tegge, Bernd

src/backend/utils/Gen_fmgrtab.sh

index 14e131553878cafb4cb6b9f585fe0e3295c2a9fa..cf649ff3cd6403d9ff23eb9ab68367c4e7776dc7 100644 (file)
@@ -9,7 +9,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.19 2001/01/24 19:43:12 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.20 2001/05/22 12:06:51 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -108,7 +108,7 @@ if [ $? -ne 0 ]; then
 fi
 
 $CPP $BKIOPTS $CPPTMPFILE | \
-egrep '^[0-9]' | \
+egrep '^[ ]*[0-9]' | \
 sort -n > $RAWFILE
 
 if [ $? -ne 0 ]; then