From: Johann Date: Thu, 12 Apr 2012 23:09:46 +0000 (-0700) Subject: FTFY: Check for astyle and version X-Git-Tag: v1.1.0~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5b61c179d8de1eab379d8e89d7b3bdca9d6c189;p=libvpx FTFY: Check for astyle and version Change-Id: I377387681332cfc975254cd825e4ad2998271690 --- diff --git a/tools/ftfy.sh b/tools/ftfy.sh index 07be5b7a8..95fd39777 100755 --- a/tools/ftfy.sh +++ b/tools/ftfy.sh @@ -101,6 +101,12 @@ CLEAN_FILES="${CLEAN_FILES} ${ORIG_COMMIT_MSG} ${NEW_COMMIT_MSG}" # Preconditions [ $# -lt 2 ] || usage +# Check that astyle supports pad-header and align-pointer=name +if ! astyle --pad-header --align-pointer=name < /dev/null; then + log "Install astyle v1.24 or newer" + exit 1 +fi + if ! git diff --quiet HEAD; then log "Working tree is dirty, commit your changes first" exit 1