mirror of
https://github.com/postgres/postgres.git
synced 2025-05-08 07:21:33 +03:00
Cleanup.
This commit is contained in:
parent
b3652d2cca
commit
c51d81376f
@ -3,10 +3,6 @@
|
|||||||
# 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:
|
# On 09/06/1997, from the top directory, I ran:
|
||||||
#
|
#
|
||||||
# find . -name '*.[ch]' -type f -print | grep -v '++' | xargs -n100 PGINDENT
|
# find . -name '*.[ch]' -type f -print | grep -v '++' | xargs -n100 PGINDENT
|
||||||
@ -33,7 +29,7 @@ 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 -nfc1 -di12 -l70 \
|
indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -nfc1 -di12 -i4 -l70 \
|
||||||
-lp -nip -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user