[DRE-commits] [ruby-minitar] 01/01: Improve generation of ruby-archive-tar-minitar-X.gemspec

Markus Frosch lazyfrosch at moszumanska.debian.org
Tue Jan 26 14:37:13 UTC 2016


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

lazyfrosch pushed a commit to branch master
in repository ruby-minitar.

commit 081d4af01b1d30dd899c3701fb9caf7919d366d6
Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Tue Jan 26 15:36:41 2016 +0100

    Improve generation of ruby-archive-tar-minitar-X.gemspec
    
    This will help with older distros for backporting.
---
 debian/rules | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 29f88eb..59eddd8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,10 @@ VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*/
 override_dh_install:
 	dh_install
 	# create gemspec for ruby-archive-tar-minitar
-	mkdir -p debian/ruby-archive-tar-minitar/$(GEMSPECPATH)/
-	sed -e 's/s\.name = "minitar"/s.name = "ruby-archive-tar-minitar"/' \
-	  debian/ruby-minitar/$(GEMSPECPATH)/minitar-$(VERSION).gemspec \
-	  > debian/ruby-archive-tar-minitar/$(GEMSPECPATH)/ruby-archive-tar-minitar-$(VERSION).gemspec
+	for path in `find debian/ruby-minitar/usr/share/rubygems-integration -name *.gemspec`; do\
+		spec=`basename "$$path"`; \
+		target="debian/ruby-archive-tar-minitar/"`dirname $${path#debian/ruby-minitar/}`; \
+		mkdir -p "$$target"; \
+		sed -e 's/s\.name = "minitar"/s.name = "ruby-archive-tar-minitar"/' \
+			"$$path" > "$$target"/"ruby-archive-tar-$$spec"; \
+	done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-minitar.git



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