File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- trap " rm -f /tmp/$$ " 0 1 2 3 15
2
+ trap " rm -f /tmp/$$ /tmp/ $$ a " 0 1 2 3 15
3
3
entab < /dev/null > /dev/null
4
4
if [ " $? " -ne 0 ]
5
5
then echo " Go to the src/tools/entab directory and do a 'make' and 'make install'." >&2
@@ -16,9 +16,14 @@ for FILE
16
16
do
17
17
cat $FILE |
18
18
sed ' s;/\* *---;/*---X_X;g' |
19
- detab -t4 -qc |
19
+ detab -t4 -qc > /tmp/ $$ a
20
20
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
+ then echo " $FILE "
24
+ cat /tmp/$$
25
+ fi
26
+ cat /tmp/$$ a |
22
27
detab -t8 -qc |
23
28
entab -t4 -qc |
24
29
sed ' s;/\*---X_X;/* ---;g' > /tmp/$$ && cat /tmp/$$ > $FILE
You can’t perform that action at this time.
0 commit comments