added wolfadmin updater script

This commit is contained in:
Remy Marquis 2019-01-05 13:31:26 +01:00
parent 00e3e36183
commit 0ec9bc9e0c

27
update/update-wolfadmin.sh Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash
#
# ET:Legacy WolfdAdmin updater - Update archive on mirror.etlegacy.com/wolfadmin
#
# Update WolfaAdmin from our forked version - sync the repo first with upstream!
# The legacy branch contains our Legacy integration patches
#
_SRC=`pwd`
WABRANCH="legacy"
cd ${_SRC}
if [[ ! -d "wolfadmin" ]]; then
# git clone https://github.com/timosmit/wolfadmin.git # upstream
git clone https://github.com/etlegacy/wolfadmin.git # our fork
cd "wolfadmin"
else
cd "wolfadmin"
git pull -q
fi
git checkout ${WABRANCH}
cd ${_SRC}
rm -f wolfadmin.tar.gz
tar --exclude '.git/*' --exclude '.git' -zcvf wolfadmin.tar.gz wolfadmin