[SCM] mplayer2/master: Add mechanism to retrieve upstream snapshots.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Sun Feb 10 20:34:14 UTC 2013


The following commit has been merged in the master branch:
commit 8df3078ec6b5ead8c761420277e1bff704c1c5f1
Author: Alessio Treglia <alessio at debian.org>
Date:   Sun Feb 10 20:34:06 2013 +0000

    Add mechanism to retrieve upstream snapshots.

diff --git a/debian/get-git-source.sh b/debian/get-git-source.sh
new file mode 100755
index 0000000..04d4b2b
--- /dev/null
+++ b/debian/get-git-source.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+
+PACKAGE=mplayer2
+BASE_REL=$(dpkg-parsechangelog 2>/dev/null | sed -ne 's/Version: \([0-9]\)\+.*/\1/p')
+OLDDIR=${PWD}
+GOS_DIR=${OLDDIR}/get-orig-source
+GIT_DESCRIBE_STR='git describe | sed -e "s/v\(.*\)/\1/"'
+
+if [ -z ${BASE_REL} ]; then
+	echo 'Please run this script from the sources root directory.'
+	exit 1
+fi
+
+
+rm -rf ${GOS_DIR}
+mkdir ${GOS_DIR} && cd ${GOS_DIR}
+git clone git://git.mplayer2.org/mplayer2.git ${PACKAGE}
+cd ${PACKAGE}/
+GIT_DESCRIBE=$(eval "${GIT_DESCRIBE_STR}")
+cd .. && XZ_OPT=-f9 tar cJf \
+	${OLDDIR}/${PACKAGE}_${GIT_DESCRIBE}.orig.tar.xz \
+	${PACKAGE} --exclude-vcs
+rm -rf ${GOS_DIR}
diff --git a/debian/rules b/debian/rules
index 4e78fe9..f94b40a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -68,3 +68,8 @@ override_dh_strip:
 override_dh_clean:
 	dh_clean
 	rm -f VERSION
+
+get-orig-source:
+	sh debian/get-git-source.sh
+
+.PHONY: get-orig-source

-- 
mplayer2 packaging



More information about the pkg-multimedia-commits mailing list