File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ astyleit() {
68
68
scripts/doxygen_space.pl " $modified "
69
69
diff " $1 " " $modified " > /dev/null || mv " $modified " " $1 "
70
70
rm -f " $modified "
71
+ rm -f " $modified .sortinc"
71
72
}
72
73
73
74
for f in " $@ " ; do
Original file line number Diff line number Diff line change @@ -91,22 +91,19 @@ for f in $MODIFIED; do
91
91
92
92
cp $f $m
93
93
ASTYLEPROGRESS=" [$i /$N ]" astyle.sh $f
94
- if diff -u $m $f >> $ASTYLEDIFF ; then
95
- # no difference found
96
- rm $m
97
- fi
94
+ diff -u $m $f >> $ASTYLEDIFF
95
+ rm $m
98
96
done
99
97
100
98
if [ -s " $ASTYLEDIFF " ]; then
101
99
if tty -s; then
102
100
# review astyle changes
103
101
colordiff < $ASTYLEDIFF | less -r
104
102
else
105
- echo " Files changed (see $ASTYLEDIFF ) "
103
+ echo " Files changed"
106
104
fi
107
- else
108
- rm $ASTYLEDIFF
109
105
fi
106
+ rm $ASTYLEDIFF
110
107
111
108
112
109
# verify SIP files
You can’t perform that action at this time.
0 commit comments