Archive target.

This commit is contained in:
Justin Hsu 2018-12-25 17:19:21 -06:00
parent 8fa41673c9
commit 768ba69a22
1 changed files with 12 additions and 2 deletions

View File

@ -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=rockhopper-07.cs.wisc.edu:/u/j/u/justhsu/public/html-s/teaching/current/cs839
# DEPLOY=jackknife:/home/justhsu/html/staging/cs839/ # DEPLOY=jackknife:/home/justhsu/html/staging/cs839/
ARCHIVE=/u/j/u/justhsu/public/html-s/teaching/f18/cs839
build: build:
make assets && mkdocs build make assets && mkdocs build
@ -18,4 +21,11 @@ deploy:
make build make build
find . -type d -exec chmod a+rx {} \; find . -type d -exec chmod a+rx {} \;
find . -type f -exec chmod a+r {} \; 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)