0ad/build/workspaces/update-workspaces.sh
Ykkrosh 3fbc464857 # Updated build system
to use Premake 3.1 (slightly modified - see next commit), and to
properly support VS2005. Should still be compatible with GCC, though
there may be differences I haven't noticed.
Removed option to build ScEd (because it won't work anyway).

This was SVN commit r3782.
2006-04-20 01:20:24 +00:00

26 lines
503 B
Bash
Executable File

#!/bin/sh
# build/workspaces/
start_dir=$(pwd)
premake_dir=$(pwd)/../premake
workspace_dir=$(pwd)/gcc
cd $premake_dir
# build/premake/
mkdir -p $workspace_dir
./premake --target gnu --outpath $workspace_dir
# These files need to be linked; premake makefiles assume that the
# lua file is accessible from the makefile directory
cd $workspace_dir
ln -f -s $premake_dir/premake.lua $premake_dir/functions.lua .
if [ -x $premake_dir/premake ]; then
ln -f -s $premake_dir/premake .
fi
cd $start_dir