[DRE-commits] [ruby-rspec] 12/19: get-orig-sources also update submodules

Jérémy Bobbio lunar at alioth.debian.org
Sun Oct 20 17:01:24 UTC 2013


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

lunar pushed a commit to branch pu/multideb
in repository ruby-rspec.

commit aec0b04e8649497318623e4af748095a23c1108d
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sun Oct 20 14:21:32 2013 +0200

    get-orig-sources also update submodules
---
 debian/rules |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index b6c0827..43119de 100755
--- a/debian/rules
+++ b/debian/rules
@@ -54,15 +54,20 @@ report:
 
 get-orig-sources:
 	dh_testdir
-	set -e && \
-	wget -c -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec.tar.gz \
+	git submodule init
+	git submodule update --checkout
+	wget -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec.tar.gz \
 		https://github.com/rspec/rspec/archive/v$(RSPEC_VERSION).tar.gz
-	wget -c -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec-core.tar.gz \
+	cd rspec && git fetch origin && git checkout v$(RSPEC_VERSION)
+	wget -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec-core.tar.gz \
 		https://github.com/rspec/rspec-core/archive/v$(RSPEC_CORE_VERSION).tar.gz
-	wget -c -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec-expectations.tar.gz \
+	cd rspec-core && git fetch origin && git checkout v$(RSPEC_CORE_VERSION)
+	wget -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec-expectations.tar.gz \
 		https://github.com/rspec/rspec-expectations/archive/v$(RSPEC_EXPECTATIONS_VERSION).tar.gz
-	wget -c -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec-mocks.tar.gz \
+	cd rspec-expectations && git fetch origin && git checkout v$(RSPEC_EXPECTATIONS_VERSION)
+	wget -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec-mocks.tar.gz \
 		https://github.com/rspec/rspec-mocks/archive/v$(RSPEC_MOCKS_VERSION).tar.gz
+	cd rspec-mocks && git fetch origin && git checkout v$(RSPEC_MOCKS_VERSION)
 
 %:
 	dh $@ --buildsystem=ruby --with ruby

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



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