[Pkg-voip-commits] [ring] 03/03: Added get-orig-source script
Alexandre Viau
aviau at moszumanska.debian.org
Sat Mar 26 01:29:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
aviau pushed a commit to branch master
in repository ring.
commit 9b5192d9cc1e73f2e21486c87c493f8633e0a61e
Author: aviau <alexandre at alexandreviau.net>
Date: Fri Mar 25 21:28:46 2016 -0400
Added get-orig-source script
---
debian/rules | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/debian/rules b/debian/rules
index 6a15c23..1d12ef2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -101,3 +101,35 @@ override_dh_auto_install:
## gnome client install ##
##########################
cd client-gnome/build && make DESTDIR=$(CURDIR)/debian/ring install
+
+tmpdir:= $(shell mktemp -d)
+workdir:= $(shell pwd)
+
+# Repacks the tarball with contrib tarballs unpacked.
+get-orig-source:
+ # Download ring tarball
+ uscan --rename --destdir=${tmpdir}
+
+ # Unpack ring tarball
+ tar -C ${tmpdir} -xvf ${tmpdir}/*.tar.gz
+
+ # Remove original tarball
+ rm ${tmpdir}/*.tar.gz
+
+ # Unpack all of the orig tarballs into tarballs-unpacked
+ mkdir ${tmpdir}/ring-project/daemon/contrib/tarballs-unpacked
+ for i in `find ${tmpdir}/ring-project/daemon/contrib/tarballs/ -name "*.tar.*"`; do \
+ projectname=`basename $$i | sed 's|\.tar.*||g'` && \
+ mkdir ${tmpdir}/ring-project/daemon/contrib/tarballs-unpacked/$$projectname && \
+ tar -C ${tmpdir}/ring-project/daemon/contrib/tarballs-unpacked/$$projectname -xf $$i && \
+ echo "Unpacked $$projectname"; \
+ done
+
+ # Remove all contrib tarballs
+ rm -rf ${tmpdir}/ring-project/daemon/contrib/tarballs
+
+ # Create the new tarball
+ cd ${tmpdir} && tar -cf ${workdir}/ring_version.tar.gz ring-project
+
+ # Clear the temp dir
+ rm -rf ${tmpdir}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/ring.git
More information about the Pkg-voip-commits
mailing list