[liblinear] 03/09: d/watch: Redo mangling: Convert upstream version to x.y.z format

Christian Kastner ckk at moszumanska.debian.org
Sun Nov 1 17:03:26 UTC 2015


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

ckk pushed a commit to branch master
in repository liblinear.

commit 246a9b2fefa0ab5f4cbe6b6cb70454d7d80055d3
Author: Christian Kastner <ckk at kvr.at>
Date:   Sun Nov 1 12:29:58 2015 +0100

    d/watch: Redo mangling: Convert upstream version to x.y.z format
---
 debian/watch | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/debian/watch b/debian/watch
index 94550a3..5f90e86 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,9 +1,15 @@
 version=3
 
-# Upstream's versioning scheme is 1.5, 1.51, 1.52, etc., so we mangle
-# it by adding a 0 to single-digit minor numbers, eg:
-# 1.8 -> 1.80, but 1.81 -> 1.81
+# Upstream's versioning scheme is 1.0, 1.01, 1.1, 1.11, 1.12, etc., so we
+# mangle it by converting it to x.y.z pattern:
+#  1.0   -> 1.0.0
+#  1.01  -> 1.0.1
+#  1.1   -> 1.1.0
+#  1.11  -> 1.1.1
+#  1.12  -> 1.1.2
+#  etc
 
 opts=\
-dversionmangle=s/\+dfsg//;s/(\d\.\d)$/${1}0/ \
+uversionmangle=s/(\d\.\d)$/${1}0/;s/(\d)\.(\d)(\d)/${1}\.${2}\.${3}/,\
+dversionmangle=s/\+dfsg// \
 http://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles/liblinear-(.*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/liblinear.git



More information about the debian-science-commits mailing list