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 =