From 7c0405bda27b2bf41aed6d49f80703ac021dd99b Mon Sep 17 00:00:00 2001 From: marko Date: Sun, 4 Apr 2021 11:26:09 +0200 Subject: [PATCH] target for updateting pmwiki --- judoWiki/.gitignore | 2 ++ judoWiki/Makefile | 19 +++++++++++++++++++ judoWiki/Makefile.cfg | 1 + judoWiki/Makefile.local-template | 3 +++ 4 files changed, 25 insertions(+) create mode 100644 judoWiki/.gitignore create mode 100644 judoWiki/Makefile create mode 100644 judoWiki/Makefile.cfg create mode 100644 judoWiki/Makefile.local-template diff --git a/judoWiki/.gitignore b/judoWiki/.gitignore new file mode 100644 index 0000000..5500895 --- /dev/null +++ b/judoWiki/.gitignore @@ -0,0 +1,2 @@ +Makefile.local + diff --git a/judoWiki/Makefile b/judoWiki/Makefile new file mode 100644 index 0000000..571fb1d --- /dev/null +++ b/judoWiki/Makefile @@ -0,0 +1,19 @@ +include Makefile.cfg +include Makefile.local + +.PHONY: all clean +all: + +.PHONY: +clean: + rm -r tmp + mkdir -p tmp + +.PHONY: updatePmWiki +updatePmWiki: clean + mkdir -p tmp + curl -L -o tmp/.pmwiki-latest.tgz http://pmwiki.org/pub/pmwiki/pmwiki-latest.tgz + tar zxvf tmp/.pmwiki-latest.tgz -C tmp/ + mv -f tmp/pmwiki-* tmp/JudoWiki + lftp -e "set ftp:ssl-allow no; mirror -R --only-newer --parallel ./tmp/JudoWiki /www/; quit" -u $(ftpUser),$(ftpPassword) $(ftpHost) + diff --git a/judoWiki/Makefile.cfg b/judoWiki/Makefile.cfg new file mode 100644 index 0000000..aeb9cc1 --- /dev/null +++ b/judoWiki/Makefile.cfg @@ -0,0 +1 @@ +ftpHost = cwsvjudo.bplaced.net diff --git a/judoWiki/Makefile.local-template b/judoWiki/Makefile.local-template new file mode 100644 index 0000000..c921aa5 --- /dev/null +++ b/judoWiki/Makefile.local-template @@ -0,0 +1,3 @@ +# login for the ftp upload +ftpUser = +ftpPassword =