[DRE-commits] [SCM] gem2deb.git branch, master, updated. 0.3.1-23-ge069485
Antonio Terceiro
terceiro at debian.org
Thu May 30 21:36:40 UTC 2013
The following commit has been merged in the master branch:
commit 9da4e159a413097f3080199f8b3868b8dde5023a
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu May 30 17:19:25 2013 -0300
Install snapshot
diff --git a/Rakefile b/Rakefile
index 3f6222b..4a4a261 100644
--- a/Rakefile
+++ b/Rakefile
@@ -36,12 +36,24 @@ task :install do
end
desc "Builds a git snapshot package"
-task :snapshot do
+task :snapshot => ['snapshot:build', 'snapshot:clean']
+
+task 'snapshot:build' do
sh 'cp debian/changelog debian/changelog.git'
date = `date --iso=seconds |sed 's/+.*//' |sed 's/[-T:]//g'`.chomp
sh "sed -i '1 s/)/~git#{date})/' debian/changelog"
sh 'ls debian/changelog.git'
sh 'dpkg-buildpackage -us -uc'
+end
+
+desc 'Build and install a git snapshot'
+task 'snapshot:install' do
+ Rake::Task['snapshot:build'].invoke
+ sh 'sudo debi'
+ Rake::Task['snapshot:clean'].invoke
+end
+
+task 'snapshot:clean' do
sh 'ls debian/changelog.git'
sh 'mv debian/changelog.git debian/changelog'
end
--
gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list