mirror of
https://github.com/etlegacy/etlegacy-tools.git
synced 2024-11-24 13:01:42 +00:00
added wolfadmin updater script
This commit is contained in:
parent
00e3e36183
commit
0ec9bc9e0c
1 changed files with 27 additions and 0 deletions
27
update/update-wolfadmin.sh
Executable file
27
update/update-wolfadmin.sh
Executable 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
|
||||
|
Loading…
Reference in a new issue