
import %w(package/tgz package/zip autoclean)

gen Archive::Tgz, "t1", :manifest => "MANIFEST"
desc "Create t1.zip"
gen Archive::Zip, "t1", :manifest => "MANIFEST"

desc "Create t2.tgz"
gen Archive::Tgz, "t2",
    :files => sys["sub*/f?"],
    :manifest => "m2.tgz.t"

gen Archive::Zip, "t2",
    :files => sys["sub*/f?"],
    :manifest => "m2.zip.t"

gen Archive::Tgz, "t3", :files => %w(Rantfile sub/f1)
gen Archive::Zip, "t3", :files => sys["Rantfile", "sub/f1"]

gen Archive::Tgz, "pkg.t/t4", :manifest, :version => "1.0.0"

gen Archive::Zip, "zip.t", "t4", :manifest, :version => "1.0.0"

gen Package::Tgz, "pkg2.t", :manifest

gen Package::Zip, "pkg.t/pkg",
    :manifest => "CONTENTS",
    :files => %w(deep/sub/sub/f1)

gen Package::Tgz, "sub", "pkg.t/pkg", :manifest,
    :version => "0.1",
    :extension => ".tar.gz"

gen Package::Tgz, "sub.t/", "pkg", :files => %w(sub/f1)

gen Package::Tgz, "t5",
    :manifest => "mf5.t",
    :files => %w(Rantfile mf5.t)

gen Package::Tgz, "t6", :files => %w(sub6.t)
gen Package::Zip, "t6", :files => %w(sub6.t)

gen Archive::Tgz, "t7", :files => %w(sub7.t)
gen Archive::Zip, "t7", :files => %w(sub7.t)

gen Archive::Tgz, "sym", :files => sys["subs.t/**/*"]
gen Archive::Zip, "sym", :files => sys["subs.t/**/*"]

gen Package::Tgz, "pkg.t/double", :files => %w(./Rantfile Rantfile)

gen AutoClean
