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