2004-06-07 12:45:48 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-12-11 22:50:03 +01:00
|
|
|
# build/workspaces/
|
2004-06-07 12:45:48 +02:00
|
|
|
|
2004-12-11 22:50:03 +01:00
|
|
|
start_dir=$(pwd)
|
|
|
|
premake_dir=$(pwd)/../premake
|
|
|
|
workspace_dir=$(pwd)/gcc
|
2004-06-07 12:45:48 +02:00
|
|
|
|
2004-12-11 22:50:03 +01:00
|
|
|
cd $premake_dir
|
|
|
|
|
|
|
|
# build/premake/
|
|
|
|
|
2007-01-04 04:22:23 +01:00
|
|
|
./premake --outpath $workspace_dir --atlas $* --target gnu
|
2004-06-07 12:45:48 +02:00
|
|
|
|
|
|
|
# These files need to be linked; premake makefiles assume that the
|
|
|
|
# lua file is accessible from the makefile directory
|
|
|
|
|
2004-12-11 22:50:03 +01:00
|
|
|
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 .
|
2004-06-07 12:45:48 +02:00
|
|
|
fi
|
|
|
|
|
2004-12-11 22:50:03 +01:00
|
|
|
cd $start_dir
|