| Index: source/libvpx/tools/ftfy.sh
|
| ===================================================================
|
| --- source/libvpx/tools/ftfy.sh (revision 172621)
|
| +++ source/libvpx/tools/ftfy.sh (working copy)
|
| @@ -29,12 +29,13 @@
|
|
|
|
|
| vpx_style() {
|
| - astyle --style=bsd --min-conditional-indent=0 --break-blocks \
|
| - --pad-oper --pad-header --unpad-paren \
|
| - --align-pointer=name \
|
| - --indent-preprocessor --convert-tabs --indent-labels \
|
| - --suffix=none --quiet "$@"
|
| - sed -i "" 's/[[:space:]]\{1,\},/,/g' "$@"
|
| + for f; do
|
| + case "$f" in
|
| + *.h|*.c|*.cc)
|
| + "${dirname_self}"/vpx-astyle.sh "$f"
|
| + ;;
|
| + esac
|
| + done
|
| }
|
|
|
|
|
| @@ -119,8 +120,7 @@
|
| git show > "${ORIG_DIFF}"
|
|
|
| # Apply the style guide on new and modified files and collect its diff
|
| -for f in $(git diff HEAD^ --name-only -M90 --diff-filter=AM \
|
| - | grep '\.[ch]$'); do
|
| +for f in $(git diff HEAD^ --name-only -M90 --diff-filter=AM); do
|
| case "$f" in
|
| third_party/*) continue;;
|
| nestegg/*) continue;;
|
|
|