adamsgaard.dk

my academic webpage
git clone git://src.adamsgaard.dk/adamsgaard.dk # fast
git clone https://src.adamsgaard.dk/adamsgaard.dk.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 6d4eb44c62db0ba92fe44739d4927a7c4ca88cd6
parent 072ca354c31d496fceb7beafe002e8729b16b06b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 12 Dec 2021 21:18:59 +0100

Makefile: only sync to /var/gopher/ if it exists

Diffstat:
MMakefile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -22,7 +22,7 @@ generate: s,text/html,text,g; \ s,\.html,\.txt,g' \ $(output)/atom.xml > $(gopheroutput)/atom.xml; - rsync -a $(gopheroutput)/ /var/gopher/ + if [ -d /var/gopher ]; then rsync -a $(gopheroutput)/ /var/gopher/; fi view: $(BROWSER) $(output)/index.html