# HG changeset patch # User David Anderson # Date 1392513193 28800 # Node ID b9d5c01a5a3b9341f2d6387e78244167b70132df # Parent e665928a4dba471f691f666face6e14cd9beba67 Improvements to checkout-deps.sh (bug 6054, r=ds). diff -r e665928a4dba -r b9d5c01a5a3b tools/checkout-deps.sh --- a/tools/checkout-deps.sh Thu Feb 13 13:19:59 2014 -0500 +++ b/tools/checkout-deps.sh Sat Feb 15 17:13:13 2014 -0800 @@ -19,8 +19,8 @@ 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 @@ 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