Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3652d2

Browse files
committed
cleanup.
1 parent70b990f commitb3652d2

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
thenecho"$FILE"
3140
cat /tmp/$$

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp