summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2005-09-27 17:33:34 +0000
committermurphy <murphy@rubychan.de>2005-09-27 17:33:34 +0000
commitef808b94700b129419bad6f33d29659edf3c30f8 (patch)
tree5d13d9f0e7a1b7d457d009ab31681dfdb7e9222d /Rakefile
parenta8de39f68c6fc8bd5a81f04bac623c464c3f05d7 (diff)
downloadcoderay-ef808b94700b129419bad6f33d29659edf3c30f8.tar.gz
Rakefile: leave build number control to Subversion
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile14
1 files changed, 2 insertions, 12 deletions
diff --git a/Rakefile b/Rakefile
index f7e0960..fb495ea 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,7 +6,7 @@ require 'rake/gempackagetask.rb'
ROOT = ''
LIB_ROOT = ROOT + 'lib/'
-task :default => :same
+task :default => :make
task :doc => [:deldoc, :rdoc]
task :deldoc do
@@ -94,25 +94,15 @@ $: << './lib'
require 'coderay'
$version = CodeRay::Version
-desc 'Create a nightly build gem'
-task :next => [:inc_build, :build, :make_gem]
-
desc 'Create the gem again'
-task :same => [:build, :make_gem]
+task :make => [:build, :make_gem]
BUILD_FILE = 'build'
-task :inc_build do
- build = File.read(BUILD_FILE).to_i
- File.open(BUILD_FILE, 'w') { |f| f.write build.succ }
-end
task :build do
$version.sub!(/\d+$/) { |minor| minor.to_i - 1 }
$version << '.' << File.read(BUILD_FILE)[/\d+/]
end
-desc 'Create a release gem'
-task :release => [:make_gem]
-
task :make_gem => [:copy_files, :make_gemspec, :gem, :copy_gem]
desc 'Copy the gem files'