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

sebastic pushed a commit to branch master
in repository mgrs.

commit 531922ecc36e5e9e6848c4b438fca0c63ab0f23e
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Thu Feb 26 19:00:03 2015 +0100

    Add watch file for upstream GitHub releases.
---
 debian/changelog       |  6 ++++++
 debian/get-orig-source | 19 -------------------
 debian/rules           |  3 ---
 debian/watch           |  6 ++++++
 4 files changed, 12 insertions(+), 22 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fcb52f6..f1a7376 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mgrs (0.0~20131209-80d5465-1~exp3) UNRELEASED; urgency=medium
+
+  * Add watch file for upstream GitHub releases.
+
+ -- Bas Couwenberg <sebas...@debian.org>  Thu, 26 Feb 2015 18:59:25 +0100
+
 mgrs (0.0~20131209-80d5465-1~exp2) experimental; urgency=medium
 
   * Add LGPL-2.1+ and OpenMap licenses.
diff --git a/debian/get-orig-source b/debian/get-orig-source
deleted file mode 100755
index ea50247..0000000
--- a/debian/get-orig-source
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-REMOTE=upstream
-BRANCH=${REMOTE}/master
-
-if [ $(git remote show ${REMOTE} | wc -l) -eq 0 ]; then
-       git remote add ${REMOTE} https://github.com/proj4js/mgrs.git
-fi
-
-git fetch ${REMOTE} --no-tags
-
-PACKAGE=$(dpkg-parsechangelog | grep ^Source: | awk '{print $2}')
-
-COMMIT=$(git log -n1 --format=format:%h ${BRANCH})
-DATE=$(date +%Y%m%d --date="@$(git log -n1 --format=format:%ct ${BRANCH})")
-
-VERSION="0.0~${DATE}-${COMMIT}"
-
-git archive --format=tar.gz --prefix=${PACKAGE}-${VERSION}/ -o 
../${PACKAGE}_${VERSION}.orig.tar.gz ${BRANCH}
diff --git a/debian/rules b/debian/rules
index e4c0778..735344b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,3 @@ override_dh_auto_build:
        # Minify Javascript
        uglifyjs -o mgrs.min.js mgrs.js
 
-get-orig-source:
-       . debian/get-orig-source
-
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9ddbda5
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+opts="dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/_/./g;s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,\
+filenamemangle=s/(?:.*?)?v?(\d[\d\.]*)\.tar\.gz/mgrs-$1.tar.gz/ \
+https://github.com/proj4js/mgrs/releases \
+(?:.*/)*(?:rel|v|mgrs|)[\-\_]?(\d[\d\-\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

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

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to