+require "rake/clean"
require "rake/packagetask"
require "rake/contrib/sshpublisher"
PKG_VERSION = File.read("bin/snett").
match(/^\s*VERSION = \"(.*)\"\s$/).captures.first
+CLOBBER.include("ChangeLog")
+
+file "ChangeLog" do
+ sh("git-log > ChangeLog")
+end
+
task :install do
destdir = ENV["DESTDIR"] || ""
prefix = ENV["PREFIX"] || "/usr/local"
FileUtils::Verbose.install(Dir["data/*"], ddir, :mode => 0644)
end
+task :package => ["ChangeLog"]
+
Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |t|
t.need_tar_gz = true
- t.package_files.include("[A-Z]*", "bin/snett", "data/logo*")
+ t.package_files.include("[A-Z]*", "ChangeLog",
+ "bin/snett", "data/logo*")
end
task :publish => [:package] do