projects
/
snett.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1ff4ec8
)
Ship a ChangeLog generated from "git log".
master
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 1 Oct 2006 16:04:47 +0000
(18:04 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 1 Oct 2006 18:04:47 +0000
(18:04 +0000)
Rakefile
patch
|
blob
|
history
diff --git
a/Rakefile
b/Rakefile
index 7d06ba72d9e4d5c4b741ff0674b0f83074844cf2..1f40c629a577f571a9b238ae9e0d354b0be1e391 100644
(file)
--- a/
Rakefile
+++ b/
Rakefile
@@
-1,3
+1,4
@@
+require "rake/clean"
require "rake/packagetask"
require "rake/contrib/sshpublisher"
require "rake/packagetask"
require "rake/contrib/sshpublisher"
@@
-5,6
+6,12
@@
PKG_NAME = "snett"
PKG_VERSION = File.read("bin/snett").
match(/^\s*VERSION = \"(.*)\"\s$/).captures.first
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"
task :install do
destdir = ENV["DESTDIR"] || ""
prefix = ENV["PREFIX"] || "/usr/local"
@@
-20,9
+27,12
@@
task :install do
FileUtils::Verbose.install(Dir["data/*"], ddir, :mode => 0644)
end
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
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
end
task :publish => [:package] do