projects
/
ruby-eet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweak lookup of PKG_VERSION.
[ruby-eet.git]
/
Rakefile
diff --git
a/Rakefile
b/Rakefile
index a92e172c9f02cbe5da454fc24fc70160e37b1697..c535b81c3cf387c4c6270defacde5cc842f5bc91 100644
(file)
--- a/
Rakefile
+++ b/
Rakefile
@@
-1,4
+1,4
@@
-# $Id: Rakefile 1
5 2005-03-28 21:07:26
Z tilman $
+# $Id: Rakefile 1
7 2005-03-29 16:02:33
Z tilman $
require "rbconfig"
require "rake/clean"
require "rbconfig"
require "rake/clean"
@@
-14,8
+14,8
@@
if (RAKEVERSION.split(".").map { |p| p.to_i } <=> [0, 5, 0]) < 0
end
PKG_NAME = "ruby-eet"
end
PKG_NAME = "ruby-eet"
-PKG_VERSION =
`grep VERSION lib/eet.rb`.match(/VERSION = \"(.*)\"/
).
- captures.first
+PKG_VERSION =
File.read("lib/eet.rb"
).
+
match(/^\s*VERSION = \"(.*)\"\s$/).
captures.first
ext_obj = "ext/ext.o"
ext_lib = "ext/eet_ext.so"
ext_obj = "ext/ext.o"
ext_lib = "ext/eet_ext.so"