Builder
-Copyright © 2006 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
Version 0.1
directory. Before running it, make sure you have the following libraries
available:
-MSP libraries: core datafile path strings io
+MSP libraries: core datafile fs strings io
Others: sigc++-2.0
#!/bin/sh
# $Id$
-REQUIRED="core datafile path strings io"
+set -e
+
+REQUIRED="core datafile fs strings io"
CFLAGS="-Iinclude `pkg-config --cflags sigc++-2.0`"
LIBS="`pkg-config --libs sigc++-2.0` -lpthread -ldl"
if [ -z "$LIBPATH" ]; then
exit 1
fi
if [ $i = "core" ]; then
- ln -sfT $path/source/core include/msp/core
- ln -sfT $path/source/time include/msp/time
- elif [ $i = "misc" ]; then
- ln -sf $path/source/*.h include/msp
+ ln -sfT $path/source/* -t include/msp
else
ln -sfT $path/source include/msp/$i
fi
{
try
{
- IO::File in((package.get_source()/".profile.cache").str());
+ IO::File in((package.get_source()/".profile").str());
string profile;
in.getline(profile);
set_option("profile", profile);
if(!package.get_builder().get_dry_run())
{
- IO::File out((package.get_source()/".profile.cache").str(), IO::M_WRITE);
+ IO::File out((package.get_source()/".profile").str(), IO::M_WRITE);
IO::print(out, "%s\n", profile);
}
void Config::load()
{
- FS::Path fn=package.get_source()/".options.cache";
-
- OptionMap::iterator i=options.find("profile");
- if(i!=options.end())
- fn=package.get_source()/(".options."+i->second.value+".cache");
+ FS::Path fn=package.get_source()/(".options."+get_option("profile").value);
try
{