From 422e74424a759c31d1dcfe0d1d9fbce3f39efb32 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 25 Apr 2015 20:39:13 -0400 Subject: Switched tox.h to the dsl generated one. Added input file to generate it. Moved the astyle stuff to the astyle directory in other/. --- tools/pre-commit | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 tools/pre-commit (limited to 'tools/pre-commit') 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 @@ -#!/usr/bin/env sh -# -# An example hook script to verify what is about to be committed. -# Called by "git commit" with no arguments. The hook should -# exit with non-zero status after issuing an appropriate message if -# it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-commit". - -for file in `git diff-index --diff-filter=ACMR --name-only HEAD`; do - if [[ $file == *.c || $file == *.h ]] - then - echo $file - `which astyle` $file --options=tools/astylerc - git add $file - fi -done \ No newline at end of file -- cgit v1.2.3