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

This commit is contained in:
Juergen E. Fischer 2015-08-16 11:48:36 +02:00
parent 371e124f4d
commit 831983f45d

View File

@ -71,19 +71,13 @@ for f in $MODIFIED; do
continue 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 if [ -x "$f" ]; then
chmod a-x "$f" chmod a-x "$f"
fi fi
;; ;;
*.py) *.py)
perl -i.prepare -pe "s/[\t ]+$//;" $f
if diff -u $f.prepare $f >>$ASTYLEDIFF; then
# no difference found
rm $f.prepare
fi
continue
;; ;;
*) *)