From: Eric Merritt <[email protected]>

---
 Makefile    |    3 +++
 do-gh-pages |    6 ++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100755 do-gh-pages

diff --git a/Makefile b/Makefile
index 102b8c6..d764827 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,9 @@ smoketests: main
 
 testall : cucumber test smoketests
 
+gh-pages:
+       ./do-gh-pages
+
 clean:
        rm -rf _build ;
        rm -rf erl_crush.dump
diff --git a/do-gh-pages b/do-gh-pages
new file mode 100755
index 0000000..146fab1
--- /dev/null
+++ b/do-gh-pages
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+PARENT_SHA=$(git show-ref -s refs/heads/gh-pages)
+DOC_SHA=$(git ls-tree -d HEAD doc | awk '{print $3}')
+NEW_COMMIT=$(echo "Auto-update docs." | git commit-tree $DOC_SHA -p 
$PARENT_SHA)
+git update-ref refs/heads/gh-pages $NEW_COMMIT
-- 
1.7.6.4

-- 
You received this message because you are subscribed to the Google Groups 
"erlware-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/erlware-dev?hl=en.

Reply via email to