Skip to content

Commit b3652d2

Browse files
committed
cleanup.
1 parent 70b990f commit b3652d2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/PGINDENT

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
# This can format all PostgreSQL *.c and *.h files,
44
# excluding libpq++, *.y, and *.l files.
55
#
6+
#
7+
# This can format all PostgreSQL *.c and *.h files,
8+
# excluding libpq++, *.y, and *.l files.
9+
#
10+
# On 09/06/1997, from the top directory, I ran:
11+
#
12+
# find . -name '*.[ch]' -type f -print | grep -v '++' | xargs -n100 PGINDENT
13+
#
14+
615
trap "rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15
716
entab </dev/null >/dev/null
817
if [ "$?" -ne 0 ]
@@ -24,8 +33,8 @@ do
2433
\2;g' | # workaround for indent bug
2534
detab -t4 -qc |
2635
sed 's;^DATA(.*$;/*&*/;' >/tmp/$$a # protect backslashes in DATA()
27-
indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -cli1 -di16 -nfc1 \
28-
-lp -nip -nbc -psl -di1 -i4 -l75 -npro /tmp/$$a >/tmp/$$ 2>&1
36+
indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -nfc1 -di12 -l70 \
37+
-lp -nip -npro /tmp/$$a >/tmp/$$ 2>&1
2938
if [ "$?" -ne 0 -o -s /tmp/$$ ]
3039
then echo "$FILE"
3140
cat /tmp/$$

0 commit comments

Comments
 (0)