]> git.r.bdr.sh - rbdr/ngx_http_office_hours_filter_module/commitdiff
Add githook and Makefile to install
authorBen Beltran <redacted>
Mon, 12 Nov 2018 22:14:41 +0000 (23:14 +0100)
committerBen Beltran <redacted>
Mon, 12 Nov 2018 22:14:41 +0000 (23:14 +0100)
Makefile [new file with mode: 0644]
scripts/git-hooks/pre-commit [new file with mode: 0755]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..2dad03f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+setup_hooks:
+       ln -s ../../scripts/git-hooks/pre-commit .git/hooks/pre-commit
+
+format:
+       indent ngx_office_hours.c
diff --git a/scripts/git-hooks/pre-commit b/scripts/git-hooks/pre-commit
new file mode 100755 (executable)
index 0000000..6a9ebca
--- /dev/null
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+make format