Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
b5b61c17
Commit
b5b61c17
authored
Apr 12, 2012
by
Johann
Browse files
FTFY: Check for astyle and version
Change-Id: I377387681332cfc975254cd825e4ad2998271690
parent
0c261715
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/ftfy.sh
View file @
b5b61c17
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment