Browse files

Bump version to 20080709. Add Rake task for creating a Debian package.

  • Loading branch information...
1 parent 097d2f3 commit 9bb1340f56d18fd6196669bfd360129100321a3d @FooBarWidget committed Jul 9, 2008
Showing with 8 additions and 1 deletion.
  1. +8 −1 distro/tasks.rb
View
9 distro/tasks.rb
@@ -1,4 +1,4 @@
-REE_VERSION = "20080621"
+REE_VERSION = "20080709"
VENDOR_RUBY_VERSION = begin
data = File.read("version.h")
data =~ /RUBY_VERSION "(.*)"/
@@ -42,6 +42,13 @@
puts "*** Ruby Enterprise Edition has been installed to #{fakeroot}"
end
+task 'package:debian' do
+ Rake::Task['fakeroot'].invoke unless File.directory?('fakeroot')
+ sh "cp -R distro/debian fakeroot/DEBIAN" unless File.directory?('fakeroot/DEBIAN')
+ sh "chown -R root:root fakeroot"
+ sh "dpkg -b fakeroot ruby-enterprise_#{VENDOR_RUBY_VERSION}-#{REE_VERSION}-i386.deb"
+end
+
def create_distdir(distdir = DISTDIR)
sh "rm -rf #{distdir}"
sh "mkdir #{distdir}"

0 comments on commit 9bb1340

Please sign in to comment.