X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffiletarget.cpp;h=51a92d13b1a11f61c34671a1d8c39adfa710bdcc;hb=HEAD;hp=08b0f3115e984e25d30b73f6d2e21d5a5543236c;hpb=a40db37e1e681d397d4bfc6c893e15945c533b72;p=builder.git diff --git a/source/filetarget.cpp b/source/filetarget.cpp deleted file mode 100644 index 08b0f31..0000000 --- a/source/filetarget.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/* $Id$ - -This file is part of builder -Copyright © 2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include -#include -#include "file.h" - -using namespace std; -using namespace Msp; - -FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a): - // XXX Builder depends on target name being its path for locating file targets - Target(b, p, /*FS::basename*/(a.str())), - path(a), - size(0) -{ - struct stat st; - if(!FS::stat(path, st)) - { - mtime=Time::TimeStamp::from_unixtime(st.st_mtime); - size=st.st_size; - } -}