[DRE-commits] [gem2deb] 01/01: Rakefile: split snapshot build from installation
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Dec 6 10:34:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit 5c02c525b31e8fa472bc36c1b042e66e8bc7ad65
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Dec 6 08:34:08 2016 -0200
Rakefile: split snapshot build from installation
---
Rakefile | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/Rakefile b/Rakefile
index fc6ae86..f7f8e76 100644
--- a/Rakefile
+++ b/Rakefile
@@ -35,8 +35,8 @@ task :install do
sh "sudo debi"
end
-desc "Builds and installs a git snapshot package"
-task 'snapshot:install' do
+desc "Builds a git snapshot package"
+task 'snapshot:build' do
if !system('git diff-index --quiet HEAD')
fail "Can't build package; you have uncommitted changes"
end
@@ -50,12 +50,17 @@ task 'snapshot:install' do
sh 'git commit -a -m snapshot-' + date
begin
sh 'DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-ignore-branch -us -uc'
- sh 'debi'
ensure
sh 'git checkout ' + branch
end
end
+desc "Installs a git snapshot package"
+task 'snapshot:install' => 'snapshot:build' do
+ sh 'debi'
+end
+
+
desc "Checks for inconsistencies between version numbers in the code and in debian/changelog"
task :version_check do
$code_version = `ruby -Ilib -rgem2deb/version -e 'puts Gem2Deb::VERSION'`.strip
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list