Commit 9679cb39 authored by Bruce Momjian's avatar Bruce Momjian

More cleanup

parent 77308880
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.45 1999/07/16 05:23:26 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.46 1999/07/16 17:46:32 momjian Exp $
* *
* NOTES * NOTES
* InitPostgres() is the function called from PostgresMain * InitPostgres() is the function called from PostgresMain
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include "libpq/libpq.h" #include "libpq/libpq.h"
#include "miscadmin.h" #include "miscadmin.h"
#include "storage/backendid.h" #include "storage/backendid.h"
#include "storage/bufpage.h"
#include "storage/proc.h" #include "storage/proc.h"
#include "storage/sinval.h" #include "storage/sinval.h"
#include "storage/smgr.h" #include "storage/smgr.h"
......
...@@ -20,8 +20,10 @@ do ...@@ -20,8 +20,10 @@ do
[ -s /usr/include/$INCLUDE ] && continue [ -s /usr/include/$INCLUDE ] && continue
[ "$INCLUDE" = postgres.h ] && continue [ "$INCLUDE" = postgres.h ] && continue
# preserve configure-specific includes # preserve configure-specific includes
grep -B1 -A1 -q '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' | grep -B1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
egrep -q '^#if|^#else|^#endif' && continue egrep -q '^#if|^#else' && continue
grep -A1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
egrep -q '^#else|^#endif' && continue
cat /tmp/$$a | cat /tmp/$$a |
grep -v '^#include[ ]*[<"]'"$INCLUDE"'[>"]' >/tmp/$$b grep -v '^#include[ ]*[<"]'"$INCLUDE"'[>"]' >/tmp/$$b
if [ "$IS_INCLUDE" = "Y" ] if [ "$IS_INCLUDE" = "Y" ]
......
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