Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make version detection more robust.

git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@494 5af023f1-ac1a-0410-98d6-829a145c37ef
  • Loading branch information...
commit 5e23db99cc58724d950d091b86ddb1167e7889a8 1 parent ac96bdb
jimweirich authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 rake/Rakefile
View
7 rake/Rakefile
@@ -30,8 +30,8 @@ end
# Determine the current version of the software
-if `ruby -Ilib ./bin/rake --version` =~ /\S+$/
- CURRENT_VERSION = $&
+if `ruby -Ilib ./bin/rake --version` =~ /rake, version ([0-9.]+)$/
+ CURRENT_VERSION = $1
else
CURRENT_VERSION = "0.0.0"
end
@@ -42,7 +42,6 @@ else
PKG_VERSION = CURRENT_VERSION
end
-
SRC_RB = FileList['lib/**/*.rb']
# The default task is run if rake is given no explicit arguments.
@@ -106,7 +105,7 @@ rd = Rake::RDocTask.new("rdoc") { |rdoc|
rdoc.rdoc_dir = 'html'
# rdoc.template = 'kilmer'
# rdoc.template = 'css2'
- rdoc.template = 'doc/jamis.rb'
+ rdoc.template = '/home/jim/working/rubyforge/rake/doc/jamis.rb'
rdoc.title = "Rake -- Ruby Make"
rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
rdoc.rdoc_files.include('README', 'MIT-LICENSE', 'TODO', 'CHANGES')
Please sign in to comment.
Something went wrong with that request. Please try again.