mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -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
|
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
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user