mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Merge pull request #5461 from m-kuhn/less_temp_files
Cleanup temporary files in prepare-commit.sh
This commit is contained in:
commit
cfad3aa560
@ -81,6 +81,7 @@ astyleit() {
|
||||
scripts/doxygen_space.pl "$modified"
|
||||
diff "$1" "$modified" >/dev/null || mv "$modified" "$1"
|
||||
rm -f "$modified"
|
||||
rm -f "$modified.sortinc"
|
||||
}
|
||||
|
||||
for f in "$@"; do
|
||||
|
@ -91,10 +91,8 @@ for f in $MODIFIED; do
|
||||
|
||||
cp $f $m
|
||||
ASTYLEPROGRESS=" [$i/$N]" astyle.sh $f
|
||||
if diff -u $m $f >>$ASTYLEDIFF; then
|
||||
# no difference found
|
||||
rm $m
|
||||
fi
|
||||
diff -u $m $f >>$ASTYLEDIFF
|
||||
rm $m
|
||||
done
|
||||
|
||||
if [ -s "$ASTYLEDIFF" ]; then
|
||||
@ -102,11 +100,10 @@ if [ -s "$ASTYLEDIFF" ]; then
|
||||
# review astyle changes
|
||||
colordiff <$ASTYLEDIFF | less -r
|
||||
else
|
||||
echo "Files changed (see $ASTYLEDIFF)"
|
||||
echo "Files changed"
|
||||
fi
|
||||
else
|
||||
rm $ASTYLEDIFF
|
||||
fi
|
||||
rm $ASTYLEDIFF
|
||||
|
||||
|
||||
# verify SIP files
|
||||
|
Loading…
x
Reference in New Issue
Block a user