]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Cleanups needed for indent.
authorBruce Momjian <bruce@momjian.us>
Fri, 5 Sep 1997 19:38:42 +0000 (19:38 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 5 Sep 1997 19:38:42 +0000 (19:38 +0000)
src/PGINDENT

index 131ec83a87acf083b99c00508920185ecae41a32..06db6185a6b6321edaf61e776505677c850976e0 100644 (file)
@@ -16,6 +16,8 @@ for FILE
 do
        cat $FILE |
        sed 's;/\*  *---;/*---X_X;g' |
+       sed 's;[        ]else[  ]*\(/\*.*\)$;else\
+\1;g' | # workaround for indent bug
        detab -t4 -qc >/tmp/$$a
        indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -cli1 -di16 -nfc1 \
                -lp -nip -nbc -psl -di1 -i4 -l75 -npro /tmp/$$a >/tmp/$$ 2>&1