changeset 120:bfdbe4eb3128

* Makefile: automating deployment.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Sat, 19 Nov 2016 01:19:58 +0100
parents 22f0158e5848
children 3e9a81efaf79
files Makefile _config.yml
diffstat 2 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Sat Nov 19 01:19:58 2016 +0100
@@ -0,0 +1,22 @@
+USRNAME ?= $(shell bash -c 'read -p \
+  "The Octave Savannah CVS repository is checked out to the parent directory.  Savannah login: " usr; \
+	echo $$usr')
+
+SAVANNAH_DIR := ../octave
+
+CVS_RSH=ssh
+
+export CVS_RSH
+
+all: deploy
+
+deploy: | $(SAVANNAH_DIR)
+	jekyll build
+	cp -a _site/. $(SAVANNAH_DIR)
+	cd $(SAVANNAH_DIR) && find . -type d -not -name "CVS" -exec cvs add '{}' \;
+	cd $(SAVANNAH_DIR) && find . -type f | grep -v CVS | xargs cvs add
+	cd $(SAVANNAH_DIR) && cvs commit
+
+$(SAVANNAH_DIR):
+	cd .. \
+	&& cvs -z3 -d:ext:$(USRNAME)@cvs.savannah.gnu.org:/web/octave checkout -P octave
--- a/_config.yml	Sat Nov 19 01:18:46 2016 +0100
+++ b/_config.yml	Sat Nov 19 01:19:58 2016 +0100
@@ -24,3 +24,5 @@
 # Build settings
 markdown: kramdown
 highlighter: pygments
+
+exclude: ["Makefile"]