From a90f12fd9d6886da4f0734288496361a304d3882 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Mon, 8 Sep 1997 01:53:56 +0000
Subject: [PATCH] Modifications for indenting.

---
 src/PGINDENT | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/PGINDENT b/src/PGINDENT
index d08971b60fc..2c9371fbc5b 100644
--- a/src/PGINDENT
+++ b/src/PGINDENT
@@ -29,7 +29,7 @@ do
 \2;g' | # workaround for indent bug
 	detab -t4 -qc |
 	sed 's;^DATA(.*$;/*&*/;' >/tmp/$$a    # protect backslashes in DATA() 
-	indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -nfc1 -di16 -i4 -l75 \
+	indent -bad -bap -bbb -bc -bl -d0 -cdb -cli1 -nce -nfc1 -di12 -i4 -l75 \
 		-lp -nip -npro /tmp/$$a >/tmp/$$ 2>&1
 	if [ "$?" -ne 0 -o -s /tmp/$$ ]
 	then	echo "$FILE"
@@ -37,8 +37,12 @@ do
 	fi
 	cat /tmp/$$a |
 	sed 's;^/\*\(DATA(.*\)\*/$;\1;' |
+	sed 's;/\*---X_X;/* ---;g' |
+	sed 's;^static[ 	][ 	]*;static ;g' | # workaround indent bug
 	detab -t8 -qc |
-	entab -t4 -qc |
-	sed 's;/\*---X_X;/* ---;g' >/tmp/$$ && cat /tmp/$$ >$FILE
+	entab -t4 -qc >/tmp/$$ && cat /tmp/$$ >$FILE
 done
 
+# The 'for' loop makes these backup files useless
+# so delete them
+rm -f *a.BAK
-- 
GitLab