etlegacy-tools/update/update-wolfadmin.sh

28 lines
633 B
Bash
Raw Normal View History

2019-01-05 12:31:26 +00:00
#!/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