tMakefile: only sync to /var/gopher/ if it exists - adamsgaard.dk - my academic webpage
HTML git clone git://src.adamsgaard.dk/adamsgaard.dk
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 6d4eb44c62db0ba92fe44739d4927a7c4ca88cd6
DIR parent 072ca354c31d496fceb7beafe002e8729b16b06b
HTML 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:
M Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/Makefile b/Makefile
t@@ -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