1
0
forked from 0ad/0ad

Linux fixes for new workspace layout

This was SVN commit r1486.
This commit is contained in:
Simon Brenner 2004-12-11 21:50:03 +00:00
parent 9f6d085732
commit 2e0bb04882
2 changed files with 23 additions and 10 deletions

View File

@ -156,7 +156,7 @@ if (OS == "windows") then
else -- Non-Windows, = Unix else -- Non-Windows, = Unix
tinsert(package.files, sourcesfromdirs(sourceroot.."lib/sysdep/unix")) tinsert(package.files, sourcesfromdirs(sourceroot, "lib/sysdep/unix"))
-- Libraries -- Libraries
package.links = { package.links = {

View File

@ -1,19 +1,32 @@
#!/bin/sh #!/bin/sh
cd premake # build/workspaces/
./premake --target gnu start_dir=$(pwd)
premake_dir=$(pwd)/../premake
workspace_dir=$(pwd)/gcc
mkdir -p ../gcc cd $premake_dir
cd ../gcc
mv -f ../premake/Makefile ../premake/prometheus.make . # build/premake/
mkdir -p tmp
cp premake.lua tmp
cd tmp
# build/premake/tmp/
../premake --target gnu
mkdir -p $workspace_dir
mv -f Makefile pyrogenesis.make $workspace_dir
# These files need to be linked; premake makefiles assume that the # These files need to be linked; premake makefiles assume that the
# lua file is accessible from the makefile directory # lua file is accessible from the makefile directory
ln -f -s ../premake/premake.lua ../premake/functions.lua . cd $workspace_dir
if [ -x ../premake/premake ]; then ln -f -s $premake_dir/premake.lua $premake_dir/functions.lua .
ln -f -s ../premake/premake . if [ -x $premake_dir/premake ]; then
ln -f -s $premake_dir/premake .
fi fi
cd .. cd $start_dir