]> git.tdb.fi Git - builder.git/blobdiff - plugins/base/tar.h
Convert builtin tools into a plugin
[builder.git] / plugins / base / tar.h
diff --git a/plugins/base/tar.h b/plugins/base/tar.h
new file mode 100644 (file)
index 0000000..9011296
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef TAR_H_
+#define TAR_H_
+
+#include <msp/builder/tool.h>
+
+class TarBall;
+
+class Tar: public Tool
+{
+public:
+       Tar(Builder &);
+
+       Target *create_target(const std::vector<Target *> &, const std::string &) override;
+
+private:
+       static bool _run(const TarBall &);
+       static void store_number(char *, unsigned, unsigned);
+};
+
+#endif