projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c26171
)
FTFY: Check for astyle and version
author
Johann
<johannkoenig@google.com>
Thu, 12 Apr 2012 23:09:46 +0000
(16:09 -0700)
committer
Johann
<johannkoenig@google.com>
Thu, 12 Apr 2012 23:36:22 +0000
(16:36 -0700)
Change-Id: I377387681332cfc975254cd825e4ad2998271690
tools/ftfy.sh
patch
|
blob
|
history
diff --git
a/tools/ftfy.sh
b/tools/ftfy.sh
index 07be5b7a8b5fe2a20ca2deaa6263b5a99fe3b932..95fd397771b83e904e5ac882d83aca8a3bca9ba8 100755
(executable)
--- 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