summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-12-01 22:30:06 +0100
committermakefu <github@syntax-fehler.de>2011-12-01 22:30:06 +0100
commit8eab8ea6ff6f1c90e144c34f4274d957ab7a40ea (patch)
treef8375ca936c97dde87a53acfc5aa8f8254dcb59b /assets
parent21119c26a137880690335f2d4e758713b58244d0 (diff)
//assets: add deploy script
update pre-commit to not automagically fix the indentation and sorting
Diffstat (limited to 'assets')
-rwxr-xr-xassets/deploy.sh3
-rwxr-xr-xassets/hooks/pre-commit7
2 files changed, 7 insertions, 3 deletions
diff --git a/assets/deploy.sh b/assets/deploy.sh
new file mode 100755
index 00000000..defad49c
--- /dev/null
+++ b/assets/deploy.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+HERE=$(dirname $(readlink -f $0))
+ln -snf $HERE/hooks/pre-commit $HERE/../db/.git/hooks/pre-commit
diff --git a/assets/hooks/pre-commit b/assets/hooks/pre-commit
index b1be0867..16a5cebc 100755
--- a/assets/hooks/pre-commit
+++ b/assets/hooks/pre-commit
@@ -8,11 +8,12 @@ cat $DB | python -m json.tool > $TMP
RET=$?
if [ "$RET" = "0" ];
then
- echo "** Check succeeded"
+ echo "** Database sanity verified"
git add $DB
- mv $TMP $DB
+ #mv $TMP $DB
else
- echo "!! database insane!"
+ echo "!! Database insane"
cat $TMP
fi
+rm $TMP
exit $RET