From a260e9226632ef15e0ecb5e4437ac2d7df928350 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 30 Aug 2013 12:24:40 -0700 Subject: [PATCH] Add a script to checkout/update linux dependencies. --- tools/checkout-linux-deps.sh | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tools/checkout-linux-deps.sh diff --git a/tools/checkout-linux-deps.sh b/tools/checkout-linux-deps.sh new file mode 100644 index 00000000..a29e4fc7 --- /dev/null +++ b/tools/checkout-linux-deps.sh @@ -0,0 +1,44 @@ +# This should be run inside a folder that contains sourcemod, otherwise, it will checkout things into "sm-dependencies". + +if [ ! -d "sourcemod-central" ]; then + if [ ! -d "sourcemod-1.5" ]; then + mkdir sm-dependencies + cd sm-dependencies + fi +fi + +if [ ! -d "mysql-5.0" ]; then + wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.13-linux-glibc2.5-i686.tar.gz/from/http://cdn.mysql.com/ -O mysql.tar.gz + tar zxvf mysql.tar.gz + mv mysql-5.6.13-linux-glibc2.5-i686 mysql-5.0 + rm mysql.tar.gz +fi + +checkout () +{ + if [ ! -d "$name" ]; then + hg clone http://hg.alliedmods.net/$path/$name + else + cd $name + hg pull -u + cd .. + fi +} + +name=mmsource-1.10 +path=releases +checkout + +sdks=( csgo hl2dm nd l4d2 ob dods l4d css tf2 ) + +for sdk in "${sdks[@]}" +do + name=hl2sdk-$sdk + path=hl2sdks + checkout +done + +name=hl2sdk +path=hl2sdks +checkout +