-# $Id: Rakefile 12 2005-03-28 21:06:34Z tilman $
+# $Id: Rakefile 14 2005-03-29 16:25:21Z tilman $
require "rake/clean"
require "rake/testtask"
require "rake/contrib/compositepublisher.rb"
require "rake/contrib/sshpublisher"
+# make sure we run at least Rake 0.5.0
+if (RAKEVERSION.split(".").map { |p| p.to_i } <=> [0, 5, 0]) < 0
+ raise("Rake 0.5.0 or greater required")
+end
+
PKG_NAME = "redact"
-PKG_VERSION = `grep VERSION lib/redact/redact.rb`.
- match(/VERSION = \"(.*)\"/).captures.first
+PKG_VERSION = File.read("lib/redact/redact.rb").
+ match(/^\s*VERSION = \"(.*)\"\s*$/).captures.first
CLOBBER.include(FileList["test/*.edj"])