mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
cleanup.
This commit is contained in:
parent
70b990fa58
commit
b3652d2cca
13
src/PGINDENT
13
src/PGINDENT
@ -3,6 +3,15 @@
|
|||||||
# This can format all PostgreSQL *.c and *.h files,
|
# This can format all PostgreSQL *.c and *.h files,
|
||||||
# excluding libpq++, *.y, and *.l files.
|
# excluding libpq++, *.y, and *.l files.
|
||||||
#
|
#
|
||||||
|
#
|
||||||
|
# This can format all PostgreSQL *.c and *.h files,
|
||||||
|
# excluding libpq++, *.y, and *.l files.
|
||||||
|
#
|
||||||
|
# On 09/06/1997, from the top directory, I ran:
|
||||||
|
#
|
||||||
|
# find . -name '*.[ch]' -type f -print | grep -v '++' | xargs -n100 PGINDENT
|
||||||
|
#
|
||||||
|
|
||||||
trap "rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15
|
trap "rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15
|
||||||
entab </dev/null >/dev/null
|
entab </dev/null >/dev/null
|
||||||
if [ "$?" -ne 0 ]
|
if [ "$?" -ne 0 ]
|
||||||
@ -24,8 +33,8 @@ do
|
|||||||
\2;g' | # workaround for indent bug
|
\2;g' | # workaround for indent bug
|
||||||
detab -t4 -qc |
|
detab -t4 -qc |
|
||||||
sed 's;^DATA(.*$;/*&*/;' >/tmp/$$a # protect backslashes in DATA()
|
sed 's;^DATA(.*$;/*&*/;' >/tmp/$$a # protect backslashes in DATA()
|
||||||
indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -cli1 -di16 -nfc1 \
|
indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -nfc1 -di12 -l70 \
|
||||||
-lp -nip -nbc -psl -di1 -i4 -l75 -npro /tmp/$$a >/tmp/$$ 2>&1
|
-lp -nip -npro /tmp/$$a >/tmp/$$ 2>&1
|
||||||
if [ "$?" -ne 0 -o -s /tmp/$$ ]
|
if [ "$?" -ne 0 -o -s /tmp/$$ ]
|
||||||
then echo "$FILE"
|
then echo "$FILE"
|
||||||
cat /tmp/$$
|
cat /tmp/$$
|
||||||
|
Loading…
x
Reference in New Issue
Block a user