From e95c2ba0b966ed6f38ed6e489d843bbc145ab2fb Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 15 Feb 2014 17:13:13 -0800 Subject: [PATCH] Improvements to checkout-deps.sh (bug 6054, r=ds). --- tools/checkout-deps.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/checkout-deps.sh b/tools/checkout-deps.sh index af4a693b..a4a9e1ec 100755 --- a/tools/checkout-deps.sh +++ b/tools/checkout-deps.sh @@ -19,8 +19,8 @@ fi if [ ! -d "sourcemod-central" ]; then if [ ! -d "sourcemod-1.5" ]; then - mkdir -p sm-dependencies - cd sm-dependencies + echo "Could not find a SourceMod repository; make sure you aren't running this script inside it." + exit 1 fi fi @@ -90,3 +90,18 @@ do checkout done +`python -c "import ambuild2"` +if [ $? -eq 1 ]; then + name=ambuild + path=ambuild + checkout + + cd ambuild + if [ $iswin -eq 1 ]; then + python setup.py install + else + python setup.py build + echo "About to install AMBuild - press Ctrl+C to abort, otherwise enter your password for sudo." + sudo python setup.py install + fi +fi