|
3 | 3 | # This can format all PostgreSQL *.c and *.h files,
|
4 | 4 | # excluding libpq++, *.y, and *.l files.
|
5 | 5 | #
|
| 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 | + |
6 | 15 | trap"rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15
|
7 | 16 | entab</dev/null>/dev/null
|
8 | 17 | if ["$?"-ne 0 ]
|
|
24 | 33 | \2;g'|# workaround for indent bug
|
25 | 34 | detab -t4 -qc|
|
26 | 35 | 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 |
29 | 38 | if ["$?"-ne 0-o-s /tmp/$$ ]
|
30 | 39 | thenecho"$FILE"
|
31 | 40 | cat /tmp/$$
|
|