quatuorbellefeuille.com

Content, build scripts and admin scripts for the Bellefeuille Quartet website.
git clone https://git.kevinlegouguec.net/quatuorbellefeuille.com
Log | Files | Refs

commit b8e8a12b1f76e2649ff43b4cf10bcdeb04696c1c
parent 0417289fc7246d8facbdcf88847d00d8cad079c6
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Sat, 20 Mar 2021 18:06:05 +0100

Add script to upload to Uberspace

Diffstat:
MMakefile | 5++++-
Aupload.sh | 9+++++++++
2 files changed, 13 insertions(+), 1 deletion(-)

diff --git 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 @@ -0,0 +1,9 @@ +#!/bin/bash + +set -eux + +OUTDIR=$1 + +. settings.sh +dest=/var/www/virtual/klg/${domain} +rsync -avz --delete ${OUTDIR}/ uberspace:${dest}/