# HG changeset patch # User Kai T. Ohlhus # Date 1479514798 -3600 # Node ID bfdbe4eb3128a5c79c02484b48a1f9bb7ee0b606 # Parent 22f0158e584838a9b7f174b658a2e048eac16a8e * Makefile: automating deployment. diff -r 22f0158e5848 -r bfdbe4eb3128 Makefile --- /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 diff -r 22f0158e5848 -r bfdbe4eb3128 _config.yml --- 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"]