+
+CLOBBER.include("ChangeLog")
+
+file "ChangeLog" do
+ `git log > ChangeLog`
+end
+
+Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |t|
+ t.need_tar_gz = true
+ t.package_files.include("AUTHORS", "COPYING", "ChangeLog", "NEWS",
+ "README", "Rakefile", "TODO",
+ "bin/redact", "lib/redact/*.rb",
+ "test/*.rb")
+end
+
+task :publish => [:rdoc, :package] do
+ p = Rake::CompositePublisher.new
+ p.add(Rake::SshFreshDirPublisher.new("code-monkey.de",
+ "public_docs/" +
+ PKG_NAME, "doc"))
+ p.add(Rake::SshFilePublisher.new("code-monkey.de",
+ ".", "pkg",
+ "#{PKG_NAME}-#{PKG_VERSION}.tar.gz"))
+ p.upload
+end