2 # Copyright 2013, Alexis La Goutte (See AUTHORS file)
6 # For git user, copy pre-commit in .git/hook/ folder
7 # to don't launch the script when commit use --no-verify argument
10 # http://mark-story.com/posts/view/using-git-commit-hooks-to-prevent-stupid-mistakes
12 for FILE
in `git diff-index --cached --name-only HEAD` ; do
13 #Exit immediately if a command exits with a non-zero status.
16 #Check if checkhf is good
17 .
/tools
/checkhf.pl
$FILE
19 #Check if checkAPIs is good
20 .
/tools
/checkAPIs.pl
$FILE
22 #Check if fix-encoding-args is good
23 .
/tools
/fix-encoding-args.pl
$FILE
25 #Check if fix-encoding-args is good
26 .
/tools
/fix-encoding-args.pl
$FILE
27 #Add whitetrailing spaces...
28 #perl -p -i -e 's/\ +$//' $(find . -name "*.[ch]" -print)
39 # indent-tabs-mode: nil
42 # ex: set shiftwidth=4 tabstop=8 expandtab:
43 # :indentSize=4:tabSize=8:noTabs=true: