1
1
forked from 0ad/0ad
0ad/build/workspaces/update-workspaces.sh
Ykkrosh ccf4425f75 # Linux fixes
update-workspaces.sh: Ensure 'gcc' directory exists, to avoid confusing
errors.
extern_libs.lua: Don't use libraries/ (except for cxxtest and fcollada)
on Linux. Changed to native EOL.

This was SVN commit r4991.
2007-04-24 20:41:54 +00:00

26 lines
523 B
Bash
Executable File

#!/bin/sh
# build/workspaces/
start_dir=$(pwd)
premake_dir=$(pwd)/../premake
workspace_dir=$(pwd)/gcc
mkdir $workspace_dir 2>/dev/null
cd $premake_dir
# build/premake/
./premake --outpath $workspace_dir --atlas $* --target gnu
# 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