summaryrefslogtreecommitdiff
path: root/post-commit
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-09-30 18:24:14 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-09-30 18:24:16 -0400
commit6035c2082b29564eb1e6d956f9653d188362832a (patch)
tree4fee68848a64c2a2cd48a06d15d36836587ee83c /post-commit
parent0d05aa02b65941586a22f283a9c0f617f0314d0f (diff)
parent60573896b4d4cc6820172cc9ad2d4355f7168662 (diff)
make: sitegen stuff
Diffstat (limited to 'post-commit')
-rwxr-xr-xpost-commit5
1 files changed, 5 insertions, 0 deletions
diff --git a/post-commit b/post-commit
index 09d2f7f..6abf27a 100755
--- a/post-commit
+++ b/post-commit
@@ -2,10 +2,15 @@
branch=$(git name-rev --name-only HEAD)
if [[ $branch == master ]]; then
+ git add .
+ git stash
+
git checkout pre-generated
git merge master -m 'bogus'
make --always-make -j12
git add .
git commit --amend -m "make: $(git log -n1 master --pretty=format:%B)"
+
git checkout master
+ git stash pop
fi