--- /dev/null
+builder - a software build system
+Copyright © 2006-2012 Mikkosoft Productions, Mikko Rasa
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/io/print.h>
#include "action.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef ACTION_H_
#define ACTION_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/utils.h>
#include <msp/io/print.h>
#include "analyzer.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef ANALYZER_H_
#define ANALYZER_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <limits>
#ifndef WIN32
#include <sys/utsname.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef ARCHITECTURE_H_
#define ARCHITECTURE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/dir.h>
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef ARCHIVE_H_
#define ARCHIVE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/utils.h>
#include <msp/strings/format.h>
#include "binary.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef BINARY_H_
#define BINARY_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/io/print.h>
#include <msp/strings/utils.h>
#include "binarypackage.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef BINARYPACKAGE_H_
#define BINARYPACKAGE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <set>
#include <cstdlib>
#include <msp/core/getopt.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef BUILDER_H_
#define BUILDER_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <algorithm>
#include "buildinfo.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef BUILDINFO_H_
#define BUILDINFO_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/dir.h>
#include <msp/fs/utils.h>
#include "builder.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef COMPILE_H_
#define COMPILE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <algorithm>
#include <msp/fs/dir.h>
#include <msp/fs/stat.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef COMPONENT_H_
#define COMPONENT_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/strings/utils.h>
#include "builder.h"
#include "condition.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef CONDITION_H_
#define CONDITION_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/core/maputils.h>
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef CONFIG_H_
#define CONFIG_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <errno.h>
#include <sys/stat.h>
#include <msp/fs/dir.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef COPY_H_
#define COPY_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/dir.h>
#include <msp/fs/utils.h>
#include "builder.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef DATACOMPILE_H_
#define DATACOMPILE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "component.h"
#include "datacompile.h"
#include "datafile.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef DATAFILE_H_
#define DATAFILE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/core/maputils.h>
#include <msp/fs/stat.h>
#include <msp/io/file.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef DEPENDENCYCACHE_H_
#define DEPENDENCYCACHE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "component.h"
#include "executable.h"
#include "sourcepackage.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef EXECUTABLE_H_
#define EXECUTABLE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <cstring>
#include <cstdlib>
#include <sys/wait.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef EXTERNALACTION_H_
#define EXTERNALACTION_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "feature.h"
Feature::Loader::Loader(Feature &f):
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef FEATURE_H_
#define FEATURE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef FILE_H_
#define FILE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
#include <msp/time/utils.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef FILETARGET_H_
#define FILETARGET_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef HEADER_H_
#define HEADER_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/utils.h>
#include "builder.h"
#include "copy.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef INSTALL_H_
#define INSTALL_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "internalaction.h"
InternalAction::InternalAction(Builder &b):
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef INTERNALACTION_H_
#define INTERNALACTION_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "library.h"
Library::Library(Builder &b, const Package *p, const Msp::FS::Path &a, const std::string &l):
-/* $Id$
-
-This file is part of builder
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef LIBRARY_H_
#define LIBRARY_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/dir.h>
#include <msp/fs/utils.h>
#include "builder.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef LINK_H_
#define LINK_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <unistd.h>
#include <msp/fs/utils.h>
#include <msp/io/print.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MAKESYMLINK_H_
#define MAKESYMLINK_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <sys/wait.h>
#include <fcntl.h>
#include <cstdlib>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MISC_H_
#define MISC_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <algorithm>
#include <msp/fs/utils.h>
#include "builder.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef OBJECTFILE_H_
#define OBJECTFILE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/io/print.h>
#include <msp/strings/lexicalcast.h>
#include <msp/strings/utils.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef PACKAGE_H_
#define PACKAGE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "package.h"
#include "pkgconfig.h"
#include "pkgconfigaction.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef PKGCONFIG_H_
#define PKGCONFIG_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/utils.h>
#include <msp/io/file.h>
#include <msp/io/print.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef PKGCONFIGACTION_H_
#define PKGCONFIGACTION_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef PROBLEM_H_
#define PROBLEM_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/strings/format.h>
#include "component.h"
#include "sharedlibrary.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef SHAREDLIB_H_
#define SHAREDLIB_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/core/maputils.h>
#include <msp/fs/utils.h>
#include <msp/io/print.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef SOURCEFILE_H_
#define SOURCEFILE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <cstdlib>
#include <msp/io/print.h>
#include <msp/strings/lexicalcast.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef SOURCEPACKAGE_H_
#define SOURCEPACKAGE_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "archive.h"
#include "component.h"
#include "objectfile.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef STATICLIB_H_
#define STATICLIB_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/utils.h>
#include "makesymlink.h"
#include "symlink.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef SYMLINK_H_
#define SYMLINK_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/path.h>
#include <msp/fs/utils.h>
#include "systemlibrary.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef SYSTEMLIBRARY_H_
#define SYSTEMLIBRARY_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <cstring>
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef TAR_H_
#define TAR_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "sourcepackage.h"
#include "tar.h"
#include "tarball.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef TARBALL_H_
#define TARBALL_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
#include "action.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef TARGET_H_
#define TARGET_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/core/systemerror.h>
#include <msp/fs/utils.h>
#include "filetarget.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef UNLINK_H_
#define UNLINK_H_
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/fs/path.h>
#include <msp/fs/utils.h>
#include "builder.h"
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef VIRTUALTARGET_H_
#define VIRTUALTARGET_H_