Skip to content

Commit 831983f

Browse files
committedAug 16, 2015
prepare-commit.sh: pass sip and py files to astyle.sh
1 parent 371e124 commit 831983f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎scripts/prepare-commit.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,13 @@ for f in $MODIFIED; do
7171
continue
7272
;;
7373

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

8080
*.py)
81-
perl -i.prepare -pe "s/[\t ]+$//;" $f
82-
if diff -u $f.prepare $f >>$ASTYLEDIFF; then
83-
# no difference found
84-
rm $f.prepare
85-
fi
86-
continue
8781
;;
8882

8983
*)

0 commit comments

Comments
 (0)
Please sign in to comment.