]> git.tdb.fi Git - builder.git/blobdiff - source/tarball.cpp
Recent versions of sigc++ require C++11
[builder.git] / source / tarball.cpp
index 2ed9e6b5d5a6a1cb920f976f1675c9d2b14dedb2..7596a3d25f1f1ed92dd64a735ca317d9e27dd6cb 100644 (file)
@@ -1,10 +1,3 @@
-/* $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"
@@ -12,17 +5,10 @@ Distributed under the LGPL
 using namespace std;
 
 TarBall::TarBall(Builder &b, const SourcePackage &p, const string &n):
-       FileTarget(b, &p, p.get_source()/(n+".tar"))
-{
-       buildable=true;
-}
+       FileTarget(b, p, p.get_source_directory()/(n+".tar"))
+{ }
 
 const SourcePackage *TarBall::get_package() const
 {
        return static_cast<const SourcePackage *>(package);
 }
-
-Action *TarBall::create_action()
-{
-       return new Tar(builder, *this);
-}