[DRE-commits] [gem2deb] 02/02: snapshot:install: build with git-buildpackage

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Mar 14 23:08:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository gem2deb.

commit dfcadee1715769d1248da6602953e627aead14c0
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Mar 14 20:01:13 2015 -0300

    snapshot:install: build with git-buildpackage
---
 Rakefile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/Rakefile b/Rakefile
index 14a7e3a..a61cce6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -39,11 +39,11 @@ desc "Builds a git snapshot package"
 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 'DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc'
+  sh 'git commit -a -m snapshot-' + date
+  sh 'git branch snapshot-' + date
+  sh 'DEB_BUILD_OPTIONS=nocheck git-buildpackage --git-ignore-branch -us -uc'
 end
 
 desc 'Build and install a git snapshot'
@@ -54,8 +54,7 @@ task 'snapshot:install' do
 end
 
 task 'snapshot:clean' do
-  sh 'ls debian/changelog.git'
-  sh 'mv debian/changelog.git debian/changelog'
+  sh 'git reset --hard HEAD^'
   sh 'fakeroot debian/rules clean'
 end
 

-- 
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