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

ecsv-guest pushed a commit to branch experimental
in repository wxmupen64plus.

commit a40e2ce41ec70bf17f79a8f236ccf87010d3a8e3
Author: Sven Eckelmann <[email protected]>
Date:   Wed Aug 31 00:04:28 2011 +0200

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

diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
new file mode 100755
index 0000000..daf6e22
--- /dev/null
+++ b/debian/get-orig-source.sh
@@ -0,0 +1,26 @@
+#! /bin/sh
+set -e
+
+if [ -z "$DIR" ]; then
+       DIR=wxmupen64plus
+fi
+if [ -z "$OWNER" ]; then
+       OWNER=auria
+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}/.hgignore"
+       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 a4f49fe..6132a84 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,7 +24,7 @@ binary binary-arch binary-indep build build-arch build-indep 
clean install insta
        dh $@ --parallel --list-missing
 
 get-orig-source:
-       uscan --verbose --force-download
+       $(CURDIR)/debian/get-orig-source.sh
 
 override_dh_auto_clean:
        /usr/bin/python waf distclean

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

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to