浏览代码

automate updating the borgbackup.github.io repo/website

cd docs ; make gh-io
Thomas Waldmann 10 年之前
父节点
当前提交
f6442fe7f0
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      docs/Makefile

+ 8 - 0
docs/Makefile

@@ -138,5 +138,13 @@ gh-pages: html
 	(cd $$GH_PAGES_CLONE && git add -A && git commit -m 'Updated gh-pages' && git push) && \
 	(cd $$GH_PAGES_CLONE && git add -A && git commit -m 'Updated gh-pages' && git push) && \
 	rm -rf $$GH_PAGES_CLONE
 	rm -rf $$GH_PAGES_CLONE
 
 
+gh-io: html
+	GH_IO_CLONE="`mktemp -d`" && \
+    git clone git@github.com:borgbackup/borgbackup.github.io.git $$GH_IO_CLONE && \
+	(cd $$GH_IO_CLONE && git rm -r *) && \
+	cp -r _build/html/* $$GH_IO_CLONE && \
+	(cd $$GH_IO_CLONE && git add -A && git commit -m 'Updated borgbackup.github.io' && git push) && \
+	rm -rf $$GH_IO_CLONE
+
 inotify: html
 inotify: html
 	while inotifywait -r . --exclude usage.rst --exclude '_build/*' ; do make html ; done
 	while inotifywait -r . --exclude usage.rst --exclude '_build/*' ; do make html ; done