From 9b51137767408248e6e21bf8f83f303d1afdbe10 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 26 May 2014 16:21:20 -0700 Subject: [PATCH] Update checkout-deps.sh. --- support/checkout-deps.sh | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) mode change 100644 => 100755 support/checkout-deps.sh diff --git a/support/checkout-deps.sh b/support/checkout-deps.sh old mode 100644 new mode 100755 index 56b17645..5e38210e --- a/support/checkout-deps.sh +++ b/support/checkout-deps.sh @@ -49,28 +49,41 @@ fi checkout () { if [ ! -d "$name" ]; then - hg clone http://hg.alliedmods.net/$path + git clone $repo -b $branch $name + if [ -n "$origin" ]; then + cd $name + git remote rm origin + git remote add origin $origin + cd .. + fi else cd $name - hg pull -u + git checkout $branch + git pull origin $branch cd .. fi } name=metamod-am -path=metamod-am +branch=master +repo="https://github.com/alliedmodders/metamod-hl1" +origin= checkout name=hlsdk -path=hl2sdks/hlsdk +branch=master +repo="https://github.com/alliedmodders/hlsdk" +origin= checkout `python -c "import ambuild2"` if [ $? -eq 1 ]; then + repo="https://github.com/alliedmodders/ambuild" + origin= + branch=master name=ambuild - path=ambuild checkout - + cd ambuild if [ $iswin -eq 1 ]; then python setup.py install