Skip to content
Permalink
Browse files

prepare-commit.sh: pass sip and py files to astyle.sh

  • Loading branch information
jef-n committed Aug 16, 2015
1 parent 371e124 commit 831983f45db0b11fa8055e749ff83d554ae72c0a
Showing with 1 addition and 7 deletions.
  1. +1 −7 scripts/prepare-commit.sh
@@ -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
;;

*)

0 comments on commit 831983f

Please sign in to comment.
You can’t perform that action at this time.