2016-10-03 16:03:36 +00:00
|
|
|
SHELL=/bin/bash
|
2017-02-23 15:56:14 +00:00
|
|
|
.PHONY=all help upload website versioninfo
|
2016-10-03 16:03:36 +00:00
|
|
|
|
|
|
|
help:
|
|
|
|
# Available targets:
|
|
|
|
# website - update website on server
|
|
|
|
# versioninfo - create versioninfo file for the current release
|
|
|
|
# upload - upload release files to server
|
2017-02-23 15:56:14 +00:00
|
|
|
# all - all of the above
|
2016-10-03 16:03:36 +00:00
|
|
|
|
|
|
|
all: versioninfo upload website
|
|
|
|
#
|
|
|
|
# Check repository status!
|
|
|
|
#
|
|
|
|
|
2016-10-03 16:08:48 +00:00
|
|
|
versioninfo:
|
2016-10-03 16:03:36 +00:00
|
|
|
head -n 1 zaaReloaded2/VERSION | tr -d '\r' > www/versioninfo.tmp
|
|
|
|
chmod 644 www/versioninfo.tmp
|
|
|
|
echo 'https://doktorkraus.de/zaareloaded/downloads/zaaReloaded-$$VERSION.exe' >> www/versioninfo.tmp
|
|
|
|
sha256sum deploy/releases/zaaReloaded-$$(head -n 1 zaaReloaded2/VERSION | tr -d '\r').exe >> www/versioninfo.tmp
|
|
|
|
echo '' >> www/versioninfo.tmp
|
|
|
|
todos www/versioninfo.tmp
|
|
|
|
mv www/versioninfo.tmp www/versioninfo.txt
|
|
|
|
|
|
|
|
upload:
|
2017-09-28 09:24:11 +00:00
|
|
|
rsync -ruvzL --progress deploy/releases/* bovender.de:/var/www/html/zaareloaded/downloads/
|
2016-10-03 16:03:36 +00:00
|
|
|
|
2016-10-03 16:08:48 +00:00
|
|
|
website:
|
2017-02-23 15:56:14 +00:00
|
|
|
rsync -ruvz www/ bovender.de:/var/www/html/zaareloaded/
|