From 0ec9bc9e0c6276035f2fc0305c9f59399d5ab2d7 Mon Sep 17 00:00:00 2001 From: Remy Marquis Date: Sat, 5 Jan 2019 13:31:26 +0100 Subject: [PATCH] added wolfadmin updater script --- update/update-wolfadmin.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 update/update-wolfadmin.sh diff --git a/update/update-wolfadmin.sh b/update/update-wolfadmin.sh new file mode 100755 index 0000000..d1db520 --- /dev/null +++ b/update/update-wolfadmin.sh @@ -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 +