Add some hooks to automatically rebuild packages as needed
authorKeith Packard <keithp@keithp.com>
Mon, 21 Jan 2013 07:59:46 +0000 (23:59 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 21 Jan 2013 07:59:46 +0000 (23:59 -0800)
Note that to make these work, you'll have to manually

$ cd .git/hooks && ln -s ../../.hooks/* .

Signed-off-by: Keith Packard <keithp@keithp.com>
.hooks/post-checkout [new file with mode: 0755]
.hooks/post-merge [new file with mode: 0755]

diff --git a/.hooks/post-checkout b/.hooks/post-checkout
new file mode 100755 (executable)
index 0000000..8c96b33
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cd packages && make
diff --git a/.hooks/post-merge b/.hooks/post-merge
new file mode 100755 (executable)
index 0000000..d94626a
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec .hooks/post-checkout