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

Commitdfc2d35

Browse files
committed
Better error reporting.
1 parent868d708 commitdfc2d35

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎src/PGINDENT

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
trap"rm -f /tmp/$$" 0 1 2 3 15
2+
trap"rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15
33
entab</dev/null>/dev/null
44
if ["$?"-ne 0 ]
55
thenecho"Go to the src/tools/entab directory and do a 'make' and 'make install'.">&2
@@ -16,9 +16,14 @@ for FILE
1616
do
1717
cat$FILE|
1818
sed's;/\* *---;/*---X_X;g'|
19-
detab -t4 -qc|
19+
detab -t4 -qc>/tmp/$$a
2020
indent -bad -bap -bbb -bc -bl -d0 -cdb -nce -cli1 -di16 -nfc1 \
21-
-lp -nip -nbc -psl -di1 -i4 -l75 -st|
21+
-lp -nip -nbc -psl -di1 -i4 -l75>/tmp/$$2>&1
22+
if ["$?"-ne 0-o-s /tmp/$$ ]
23+
thenecho"$FILE"
24+
cat /tmp/$$
25+
fi
26+
cat /tmp/$$a|
2227
detab -t8 -qc|
2328
entab -t4 -qc|
2429
sed's;/\*---X_X;/* ---;g'>/tmp/$$&& cat /tmp/$$>$FILE

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp