Skip to content

Commit

Permalink
Revert "Merge pull request #5461 from m-kuhn/less_temp_files"
Browse files Browse the repository at this point in the history
This reverts commit cfad3aa, reversing
changes made to cdca708.
  • Loading branch information
3nids committed May 28, 2018
1 parent 4c3a9ef commit 034c3f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion scripts/astyle.sh
Expand Up @@ -81,7 +81,6 @@ 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
Expand Down
11 changes: 7 additions & 4 deletions scripts/prepare-commit.sh
Expand Up @@ -91,19 +91,22 @@ for f in $MODIFIED; do

cp $f $m
ASTYLEPROGRESS=" [$i/$N]" astyle.sh $f
diff -u $m $f >>$ASTYLEDIFF
rm $m
if diff -u $m $f >>$ASTYLEDIFF; then
# no difference found
rm $m
fi
done

if [ -s "$ASTYLEDIFF" ]; then
if tty -s; then
# review astyle changes
colordiff <$ASTYLEDIFF | less -r
else
echo "Files changed"
echo "Files changed (see $ASTYLEDIFF)"
fi
else
rm $ASTYLEDIFF
fi
rm $ASTYLEDIFF


# verify SIP files
Expand Down

0 comments on commit 034c3f0

Please sign in to comment.