mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
prepare-commit.sh: pass sip and py files to astyle.sh
This commit is contained in:
parent
371e124f4d
commit
831983f45d
@ -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
|
||||
;;
|
||||
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user