summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-20 18:06:05 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-20 18:06:05 +0100
commitb8e8a12b1f76e2649ff43b4cf10bcdeb04696c1c (patch)
tree017b255f9534b771d8197d4a7f6b4c6af82f3c20
parent0417289fc7246d8facbdcf88847d00d8cad079c6 (diff)
downloadquatuorbellefeuille.com-b8e8a12b1f76e2649ff43b4cf10bcdeb04696c1c.tar.xz
Add script to upload to Uberspace
-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}/