Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
prepare-commit.sh: pass sip and py files to astyle.sh
  • Loading branch information
jef-n committed Aug 16, 2015
1 parent 371e124 commit 831983f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/prepare-commit.sh
Expand Up @@ -71,19 +71,13 @@ for f in $MODIFIED; do
continue
;;

*.cpp|*.c|*.h|*.cxx|*.hxx|*.c++|*.h++|*.cc|*.hh|*.C|*.H)
*.cpp|*.c|*.h|*.cxx|*.hxx|*.c++|*.h++|*.cc|*.hh|*.C|*.H|*.sip)
if [ -x "$f" ]; then
chmod a-x "$f"
fi
;;

*.py)
perl -i.prepare -pe "s/[\t ]+$//;" $f
if diff -u $f.prepare $f >>$ASTYLEDIFF; then
# no difference found
rm $f.prepare
fi
continue
;;

*)
Expand Down

0 comments on commit 831983f

Please sign in to comment.