Improvements to checkout-deps.sh (bug 6054, r=ds).
authorDavid Anderson <dvander@alliedmods.net>
Sat Feb 15 17:13:13 2014 -0800 (2014-02-15)
changeset 4253b9d5c01a5a3b
parent 4252 e665928a4dba
child 4254 614308e8e6c8
Improvements to checkout-deps.sh (bug 6054, r=ds).
tools/checkout-deps.sh
     1.1 --- a/tools/checkout-deps.sh	Thu Feb 13 13:19:59 2014 -0500
     1.2 +++ b/tools/checkout-deps.sh	Sat Feb 15 17:13:13 2014 -0800
     1.3 @@ -19,8 +19,8 @@
     1.4  
     1.5  if [ ! -d "sourcemod-central" ]; then
     1.6    if [ ! -d "sourcemod-1.5" ]; then
     1.7 -    mkdir -p sm-dependencies
     1.8 -    cd sm-dependencies
     1.9 +    echo "Could not find a SourceMod repository; make sure you aren't running this script inside it."
    1.10 +    exit 1
    1.11    fi
    1.12  fi
    1.13  
    1.14 @@ -90,3 +90,18 @@
    1.15    checkout
    1.16  done
    1.17  
    1.18 +`python -c "import ambuild2"`
    1.19 +if [ $? -eq 1 ]; then
    1.20 +  name=ambuild
    1.21 +  path=ambuild
    1.22 +  checkout
    1.23 +
    1.24 +  cd ambuild
    1.25 +  if [ $iswin -eq 1 ]; then
    1.26 +    python setup.py install
    1.27 +  else
    1.28 +    python setup.py build
    1.29 +    echo "About to install AMBuild - press Ctrl+C to abort, otherwise enter your password for sudo."
    1.30 +    sudo python setup.py install
    1.31 +  fi
    1.32 +fi