[mupen64plus-audio-sdl] 66/163: Add debian/get-orig-source.sh for snapshots

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:53:15 UTC 2015


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

ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-audio-sdl.

commit bb0eb99297c600da7be65893b9f1ade83bfcbd9a
Author: Sven Eckelmann <sven at narfation.org>
Date:   Mon Aug 29 13:27:14 2011 +0200

    Add debian/get-orig-source.sh for snapshots
---
 debian/changelog          |  1 +
 debian/get-orig-source.sh | 26 ++++++++++++++++++++++++++
 debian/rules              |  2 +-
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 03d717a..cb6ebff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ mupen64plus-audio-sdl (1.99.5~hg20110828-1) UNRELEASED; urgency=low
   * Don't mix implicit and explicit rules to prevent FTBFS with make 3.82
   * debian/patches:
     - Remove upstream merged patches rewrite_makefile.patch
+  * Add debian/get-orig-source.sh for snapshots
 
  -- Sven Eckelmann <sven at narfation.org>  Sun, 28 Aug 2011 18:50:35 +0200
 
diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
new file mode 100755
index 0000000..7931f63
--- /dev/null
+++ b/debian/get-orig-source.sh
@@ -0,0 +1,26 @@
+#! /bin/sh
+set -e
+
+if [ -z "$DIR" ]; then
+	DIR=mupen64plus-audio-sdl
+fi
+if [ -z "$OWNER" ]; then
+	OWNER=richard42
+fi
+
+# try to download source package
+if [ "$1" != "snapshot" ]; then
+	uscan --verbose --force-download
+else
+	MODULE="${OWNER}/${DIR}"
+	TMP="`mktemp -t -d`"
+	hg clone --noupdate "http://bitbucket.org/${MODULE}" "${TMP}"
+	REV="`hg --repository "${TMP}" log -r tip --template '{latesttag}+{latesttagdistance}+{node|short}\n'`"
+	LONGREV="`hg --repository "${TMP}" log -r tip --template '{node}\n'`"
+	TARNAME="${DIR}_${REV}.orig.tar"
+	echo "${LONGREV}"
+	EXCLUDE="--exclude ${TMP}/.hgtags --exclude ${TMP}/.hg_archival.txt --exclude ${TMP}/roms"
+	hg --repository "${TMP}" archive --no-decode --type tar --prefix "${DIR}-${REV}/" ${EXCLUDE} -r tip "${TARNAME}"
+	gzip -n -f "${TARNAME}"
+	rm -rf "${TMP}"
+fi
diff --git a/debian/rules b/debian/rules
index 690b4d3..8c0ebd3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,7 @@ binary binary-arch binary-indep build build-arch build-indep clean install insta
 	dh $@ --sourcedirectory="projects/unix" --parallel --list-missing
 
 get-orig-source:
-	uscan --verbose --force-download
+	$(CURDIR)/debian/get-orig-source.sh
 
 override_dh_auto_build:
 	dh_auto_build -- all $(MAKEOPTIONS)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-audio-sdl.git



More information about the Pkg-games-commits mailing list