[DRE-commits] [SCM] pkg-ruby-extras.git branch, master, updated. 43feaead55eb06fc846bd1711cdb7357f6d5cdb8

Antonio Terceiro terceiro at debian.org
Mon Jun 25 00:16:18 UTC 2012


The following commit has been merged in the master branch:
commit 43feaead55eb06fc846bd1711cdb7357f6d5cdb8
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Jun 24 21:11:49 2012 -0300

    handle most simple cases of adding support for rubygems-integration

diff --git a/add-gemspec-install b/add-gemspec-install
new file mode 100755
index 0000000..9f083fb
--- /dev/null
+++ b/add-gemspec-install
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+sed -i -e 's/gem2deb (>= [0-9.]\+~)/gem2deb (>= 0.3.0~)/' debian/control
+dch -i 'Bump build dependency on gem2deb to >= 0.3.0~'
+sed -i -e '1 s/UNRELEASED/unstable/' debian/changelog
+git commit -a -m 'Build against newer gem2deb'
+git buildpackage --git-pbuilder --git-tag
+git show
+debc | grep gemspec
+
+printf "Proceed with the upload? [y/N] "
+read proceed
+if [ "$proceed" = 'y' ] || [ "$proceed" = 'Y' ]; then
+  # push
+  git push --all
+  git push --tags
+  # sign
+  debsign
+  # upload
+  source=$(dpkg-parsechangelog | awk '{ if ($1 == "Source:") print($2)}')
+  version=$(dpkg-parsechangelog | awk  '{ if ($1 == "Version:") { print ($2) } }')
+  cd .. && dput ${source}_${version}_amd64.changes
+fi

-- 
pkg-ruby-extras.git



More information about the Pkg-ruby-extras-commits mailing list