diff options
author | irungentoo <irungentoo@gmail.com> | 2015-04-25 20:39:13 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-04-25 20:39:13 -0400 |
commit | 422e74424a759c31d1dcfe0d1d9fbce3f39efb32 (patch) | |
tree | 2573d07ace13214f568d917ea70020c66c342b33 /tools | |
parent | 28de3f59fdfc185e42d3d5393de7fd5ba78eae5d (diff) |
Switched tox.h to the dsl generated one.
Added input file to generate it.
Moved the astyle stuff to the astyle directory in other/.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/README | 11 | ||||
-rw-r--r-- | tools/astylerc | 11 | ||||
-rw-r--r-- | tools/pre-commit | 17 |
3 files changed, 0 insertions, 39 deletions
diff --git a/tools/README b/tools/README deleted file mode 100644 index 26802ec7..00000000 --- a/tools/README +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | This directory can house various tools and utilities. | ||
2 | |||
3 | astylerc | ||
4 | - This file can be used in the precommit hook to try its best | ||
5 | at making the code conform to the coding style document. | ||
6 | |||
7 | pre-commit (*NIX only at the moment) | ||
8 | - Lints your file in adherence to the coding style doucment as | ||
9 | best as possible in terms of spacing, indenting, etc. | ||
10 | - Requires you to have astyle installed. | ||
11 | - To use, copy this file to ProjectTox-Core/.git/hooks | ||
diff --git a/tools/astylerc b/tools/astylerc deleted file mode 100644 index dd738b74..00000000 --- a/tools/astylerc +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --style=kr | ||
2 | --pad-header | ||
3 | --max-code-length=120 | ||
4 | --convert-tabs | ||
5 | --indent-switches | ||
6 | --pad-oper | ||
7 | --align-pointer=name | ||
8 | --align-reference=name | ||
9 | --preserve-date | ||
10 | --lineend=linux | ||
11 | --break-blocks \ No newline at end of file | ||
diff --git a/tools/pre-commit b/tools/pre-commit deleted file mode 100644 index 8f91779d..00000000 --- a/tools/pre-commit +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | # | ||
3 | # An example hook script to verify what is about to be committed. | ||
4 | # Called by "git commit" with no arguments. The hook should | ||
5 | # exit with non-zero status after issuing an appropriate message if | ||
6 | # it wants to stop the commit. | ||
7 | # | ||
8 | # To enable this hook, rename this file to "pre-commit". | ||
9 | |||
10 | for file in `git diff-index --diff-filter=ACMR --name-only HEAD`; do | ||
11 | if [[ $file == *.c || $file == *.h ]] | ||
12 | then | ||
13 | echo $file | ||
14 | `which astyle` $file --options=tools/astylerc | ||
15 | git add $file | ||
16 | fi | ||
17 | done \ No newline at end of file | ||