Update checkout-deps.sh.

This commit is contained in:
David Anderson 2014-05-26 16:21:20 -07:00
parent 4d3e219d84
commit 9b51137767

23
support/checkout-deps.sh Normal file → Executable file
View File

@ -49,26 +49,39 @@ 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