#!/bin/bash ################################################################ ## Copyright 2009-2010 Scott Dollins (scott@scottdollins.com) ## ## Please do not remove this notice. ## ## Tested on Ubuntu Karmic Server ## ################################################################ #install the nessessary tools if not already installed apt-get install unzip build-essential -y #create a temp directory to work out of mkdir temp cd temp #get the angelscript archive (I could not get 2.18.* to work) wget http://www.angelcode.com/angelscript/sdk/files/angelscript_2.17.2.zip unzip angelscript_2.17.2.zip cd sdk/angelscript/projects/gnuc #compile the angelscript library and install it make make install cd ../../.. cd add_on mv clib c cd c mv as_c.cpp c.cpp cd .. #get the makefile for the add ons wget http://files.scottdollins.com/scripts/angelscript/makefile #compile and manually install make mkdir /usr/local/include/angelscript mv */*.h /usr/local/include/angelscript mv *.a /usr/local/lib cd ../../.. #clean up rm -r temp