From bfc26a3f40dc61c3af21641878c54dc8977507dd Mon Sep 17 00:00:00 2001 From: Justin Hsu Date: Tue, 25 Dec 2018 17:19:21 -0600 Subject: [PATCH] Archive target. --- website/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/website/Makefile b/website/Makefile index 5c1bacb..bd35ad0 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,6 +1,9 @@ -DEPLOY=driftless:/u/j/u/justhsu/public/html-s/teaching/current/cs839 +HOST=driftless +DEPLOY=/u/j/u/justhsu/public/html-s/teaching/current/cs839 # DEPLOY=rockhopper-07.cs.wisc.edu:/u/j/u/justhsu/public/html-s/teaching/current/cs839 # DEPLOY=jackknife:/home/justhsu/html/staging/cs839/ +ARCHIVE=/u/j/u/justhsu/public/html-s/teaching/f18/cs839 + build: make assets && mkdocs build @@ -18,4 +21,11 @@ deploy: make build find . -type d -exec chmod a+rx {} \; find . -type f -exec chmod a+r {} \; - rsync -avzp --delete -e ssh ./site/ $(DEPLOY) + rsync -avzp --delete -e ssh ./site/ $(HOST):$(DEPLOY) + +archive: + make build + find . -type d -exec chmod a+rx {} \; + find . -type f -exec chmod a+r {} \; + ssh $(HOST) mkdir -p $(ARCHIVE) + rsync -avzp --delete -e ssh ./site/ $(HOST):$(ARCHIVE)