summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rwxr-xr-xupload.sh9
2 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9479168..776320f 100644
--- a/Makefile
+++ b/Makefile
@@ -29,10 +29,13 @@ stylesheets_folders = $(call dirnames,$(stylesheets))
scripts = $(foreach img,$(shell find scripts -type f),$(OUTDIR)/$(img))
scripts_folders = $(call dirnames,$(scripts))
-.PHONY: all clean site
+.PHONY: all clean site upload
all: site
+upload: site
+ ./upload.sh $(OUTDIR)
+
clean:
-rm -r $(OUTDIR)
diff --git a/upload.sh b/upload.sh
new file mode 100755
index 0000000..09606ca
--- /dev/null
+++ b/upload.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -eux
+
+OUTDIR=$1
+
+. settings.sh
+dest=/var/www/virtual/klg/${domain}
+rsync -avz --delete ${OUTDIR}/ uberspace:${dest}/