Tweak lookup of PKG_VERSION.
authorTilman Sauerbeck <tilman@code-monkey.de>
Tue, 29 Mar 2005 16:03:33 +0000 (16:03 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Tue, 29 Mar 2005 16:03:33 +0000 (16:03 +0000)
ChangeLog
Rakefile

index 0bb0c3305c08da4680aac4374650201ac3e9db49..e46024a367fc4307676580289195c6395fa23696 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
 --
-$Id: ChangeLog 12 2005-03-28 21:06:34Z tilman $
+$Id: ChangeLog 13 2005-03-29 16:03:33Z tilman $
 ++
 
+2005-03-29 Tilman Sauerbeck (tilman at code-monkey de)
+        * Rakefile: Tweak lookup of PKG_VERSION
+
 2005-03-28 Tilman Sauerbeck (tilman at code-monkey de)
         * lib/redact/app.rb: Tweaked "redact --version" output
         * Rakefile, test/test_basic.rb: Use 'edj' instead of 'eet'
index d6bf235f26b39042029d0036d6b597b6c137be29..195ffa8c4cffaa78cab99d8cc75c7627d1d98ba3 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,4 @@
-# $Id: Rakefile 12 2005-03-28 21:06:34Z tilman $
+# $Id: Rakefile 13 2005-03-29 16:03:33Z tilman $
 
 require "rake/clean"
 require "rake/testtask"
@@ -8,8 +8,8 @@ require "rake/contrib/compositepublisher.rb"
 require "rake/contrib/sshpublisher"
 
 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"])