ref: b5b61c179d8de1eab379d8e89d7b3bdca9d6c189
parent: 0c261715b0f32455797344818fc1e2524788f701
author: Johann <johannkoenig@google.com>
date: Thu Apr 12 12:09:46 EDT 2012
FTFY: Check for astyle and version Change-Id: I377387681332cfc975254cd825e4ad2998271690
--- a/tools/ftfy.sh
+++ b/tools/ftfy.sh
@@ -101,6 +101,12 @@
# 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
--
⑨