[DRE-commits] [ruby-shadow] 04/05: Add get-orig-source rule

David Suárez deiv-guest at alioth.debian.org
Sat Oct 19 17:12:37 UTC 2013


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

deiv-guest pushed a commit to branch master
in repository ruby-shadow.

commit 8d4e90abe497fce43faf03d9864cd64d114c2192
Author: David Suárez <david.sephirot at gmail.com>
Date:   Sat Oct 19 14:51:21 2013 +0200

    Add get-orig-source rule
---
 debian/rules |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/rules b/debian/rules
index a5e7dc8..a497a41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,15 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
+SWVERSION=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
+              | sed -rne 's,^Version: ([0-9\.]*)\-[0-9]?,\1,p')
+GIT_COMMIT=fa317a92
+GIT_URL=https://github.com/apalmblad/ruby-shadow.git
+
+get-orig-source:
+	git clone $(GIT_URL) ruby-shadow-$(SWVERSION) || $(RM) -r ruby-shadow-$(SWVERSION)
+	cd ruby-shadow-$(SWVERSION) && git checkout $(GIT_COMMIT) && $(RM) -r .git .git*
+	find -L ruby-shadow-$(SWVERSION) -xdev -type f -print | sort | tar -caf "ruby-shadow-$(SWVERSION).tar.gz" -T- --owner=root --group=root --mode=a+rX \
+	; $(RM) -r "ruby-shadow-$(SWVERSION)"
\ No newline at end of file

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



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