X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftar.h;h=befebb814db6f7e95dd5f58a94ffa66c562e11dc;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=d81d31bae195beb4ffd925a119cb14862a236a41;hpb=ab25857fd626152bc9a2832de82b400c062857e6;p=builder.git diff --git a/source/tar.h b/source/tar.h index d81d31b..befebb8 100644 --- a/source/tar.h +++ b/source/tar.h @@ -1,37 +1,20 @@ -/* $Id$ - -This file is part of builder -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef TAR_H_ #define TAR_H_ -#include -#include "internalaction.h" -#include "misc.h" +#include "tool.h" class TarBall; -class Tar: public InternalAction +class Tar: public Tool { public: - Tar(Builder &, const TarBall &); -private: - class Worker: public InternalAction::Worker - { - public: - Worker(Tar &); - private: - Tar &tar; + Tar(Builder &); - void main(); - void store_number(char *, unsigned, unsigned); - }; + Target *create_target(const std::vector &, const std::string &) override; - const TarBall &tarball; - StringList files; +private: + static bool _run(const TarBall &); + static void store_number(char *, unsigned, unsigned); }; #endif