[mupen64plus-core] 260/310: Adjust debian/get-orig-source.sh for github

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:58:13 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-core.

commit b00453c5e6e1c9f799cb1f08f71d2e8f02851fa9
Author: Sven Eckelmann <sven at narfation.org>
Date:   Tue Dec 17 23:29:28 2013 +0100

    Adjust debian/get-orig-source.sh for github
---
 debian/changelog          |  3 +++
 debian/get-orig-source.sh | 13 ++++++-------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5060802..1453259 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ mupen64plus-core (2.0-5) UNRELEASED; urgency=medium
     - Change upstream check from bitbucket to github
   * debian/copyright:
     - Change upstream source to github
+  * debian/get-orig-source.sh
+    - Change upstream repository to github
+    - Change SCM from Mercurial to Git
 
  -- Sven Eckelmann <sven at narfation.org>  Sat, 14 Dec 2013 16:57:37 +0100
 
diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
index 0742610..4ee4472 100755
--- a/debian/get-orig-source.sh
+++ b/debian/get-orig-source.sh
@@ -5,22 +5,21 @@ if [ -z "$DIR" ]; then
 	DIR=mupen64plus-core
 fi
 if [ -z "$OWNER" ]; then
-	OWNER=richard42
+	OWNER=mupen64plus
 fi
 
 # try to download source package
 if [ "$1" != "snapshot" ]; then
 	uscan --verbose --force-download
 else
-	MODULE="${OWNER}/${DIR}"
+	MODULE=$(echo "${OWNER}/${DIR}" | sed 's/^\/*//')
 	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'`"
+	git clone --bare "https://github.com/${MODULE}.git" "${TMP}"
+	REV="$(git --git-dir "${TMP}" describe --tags --long master | sed -e 's/^v*//' -e 's/-/+/g')"
+	LONGREV="$(git --git-dir "${TMP}" rev-parse master)"
 	TARNAME="${DIR}_${REV}.orig.tar"
 	echo "${LONGREV}"
-	EXCLUDE="--exclude ${TMP}/.hgtags --exclude ${TMP}/.hg_archival.txt --exclude ${TMP}/.hgignore"
-	hg --repository "${TMP}" archive --no-decode --type tar --prefix "${DIR}-${REV}/" ${EXCLUDE} -r tip "${TARNAME}"
+	git --git-dir "${TMP}" archive --format=tar --prefix="${DIR}-${REV}/" master -o "${TARNAME}"
 	gzip -n -f "${TARNAME}"
 	rm -rf "${TMP}"
 fi

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



More information about the Pkg-games-commits mailing list