]> git.e2factory.org Git - e2factory.git/commitdiff
add new external tool: gzip
authorGordon Hecker <gh@emlix.com>
Thu, 18 Feb 2010 13:36:44 +0000 (14:36 +0100)
committerGordon Hecker <gh@emlix.com>
Thu, 18 Feb 2010 13:37:43 +0000 (14:37 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/e2lib.lua
generic/tools.lua

index d0ffd15d1f359e0be9b988103e6b1bb7b8c7cf4a..22c2f657bd52e98c489d34ca520016f6fac3888f 100644 (file)
@@ -1515,6 +1515,15 @@ function rsync(args)
         return call_tool("rsync", args)
 end
 
+--- call the gzip command
+-- @param file string: file to compress
+-- @return bool
+-- @return the last line ouf captured output
+function gzip(file)
+       local args = string.format("'%s'", file)
+       return call_tool("gzip", args)
+end
+
 --- call the catcommand
 -- @param args
 -- @return bool
index b639fc65e76a3937b5b19c293240601629e8fe15..9020152df013c7baa07a3dfd858250d88a135de1 100644 (file)
@@ -53,6 +53,7 @@ local tools = {
        touch = { name = "touch", flags = "", optional = false },
        uname = { name = "uname", flags = "", optional = false },
        patch = { name = "patch", flags = "", optional = false },
+       gzip = { name = "gzip", flags = "", optional = false },
         ["e2-su"] = { name = buildconfig.PREFIX .. "/bin/e2-su", flags = "",
                                                        optional = false },
        ["e2-su-2.2"] = { name = buildconfig.PREFIX .. "/bin/e2-su-2.2",