From 11e977d8463954cb314e70032f3852cf926b52bd Mon Sep 17 00:00:00 2001
From: Thomas Moulard <thomas.moulard@gmail.com>
Date: Mon, 22 Jul 2013 17:49:29 +0900
Subject: [PATCH] Improve watch file

---
 debian/watch | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/debian/watch b/debian/watch
index 9dbb3590..c7529c10 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,8 +1,6 @@
-# Watch control file for uscan
-# Rename this file to "watch" and then you can run the "uscan" command
-# to check for upstream updates and more.
-# See uscan(1) for format
-
 version=3
-
-http://www.irisa.fr/lagadic/visp/download.html http://gforge.inria.fr/frs/download.php/.*/ViSP-(.*).tar.gz
+# Mangle upstream pre-releases to make sure they are ordered before
+# the final release.
+opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \
+http://www.irisa.fr/lagadic/visp/download.html \
+(?:.*/|)ViSP-(\d\S*)\.(?:tar\.(?:gz|bz2|xz)|tgz|tbz2|txz|zip)(?:|\?\S+)
-- 
GitLab