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
tinsert(package.files, sourcesfromdirs(sourceroot.."lib/sysdep/unix"))
tinsert(package.files, sourcesfromdirs(sourceroot, "lib/sysdep/unix"))
-- Libraries
package.links = {

View File

@ -1,19 +1,32 @@
#!/bin/sh
cd premake
# build/workspaces/
./premake --target gnu
start_dir=$(pwd)
premake_dir=$(pwd)/../premake
workspace_dir=$(pwd)/gcc
mkdir -p ../gcc
cd ../gcc
mv -f ../premake/Makefile ../premake/prometheus.make .
cd $premake_dir
# 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
# lua file is accessible from the makefile directory
ln -f -s ../premake/premake.lua ../premake/functions.lua .
if [ -x ../premake/premake ]; then
ln -f -s ../premake/premake .
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 ..
cd $start_dir