aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-09-26 17:32:39 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-09-26 17:32:39 +0200
commit152a9ea1ee5f12cae69448a4971adaa1b2fbcc17 (patch)
tree5e1ffee3a9e7f674b21cc3787b0869787095a687
parenta639c20e7cdba4abcfd8041939d70124bfb8fa23 (diff)
downloadsebastiano.tronto.net-152a9ea1ee5f12cae69448a4971adaa1b2fbcc17.tar.gz
sebastiano.tronto.net-152a9ea1ee5f12cae69448a4971adaa1b2fbcc17.zip
Improved rsync name resolution
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4352b9f..ea13048 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net" 1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net"
2DESTGEMINI="tronto.net:/var/gemini" 2DESTGEMINI="tronto.net:/var/gemini"
3RSYNC=$$( (command -V rsync 2>&1 > /dev/null && echo rsync) || echo openrsync)
3 4
4all: clean 5all: clean
5 ./build.sh 6 ./build.sh
@@ -11,11 +12,9 @@ clean:
11deploy: syncgemini synchttp 12deploy: syncgemini synchttp
12 13
13syncgemini: 14syncgemini:
14 rsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI} || \ 15 ${RSYNC} -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI}
15 openrsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI}
16 16
17synchttp: 17synchttp:
18 rsync -rv --delete --rsync-path=openrsync http/ ${DEST} || \ 18 ${RSYNC} -rv --delete --rsync-path=openrsync http/ ${DEST}
19 openrsync -rv --delete --rsync-path=openrsync http/ ${DEST}
20 19
21.PHONY: all clean deploy syncgemini synchttp 20.PHONY: all clean deploy syncgemini synchttp

Generated with cgit - Back to sebastiano.tronto.net