File: 0004-Parse-upstream-version-from-debian-changelog-and-not.patch

package info (click to toggle)
gearmand 1.1.21%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,748 kB
  • sloc: cpp: 53,419; ansic: 3,230; sh: 1,712; makefile: 286; perl: 16
file content (15 lines) | stat: -rw-r--r-- 549 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= <ondrej@sury.org>
Date: Wed, 12 Oct 2016 12:58:54 +0200
Subject: Parse upstream version from debian changelog and not from git

---
 version.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/version.m4 b/version.m4
index 28094e9..45ec54d 100644
--- a/version.m4
+++ b/version.m4
@@ -1 +1 @@
-m4_define([VERSION_NUMBER], m4_esyscmd_s([git describe --always]))
+m4_define([VERSION_NUMBER], m4_esyscmd_s([dpkg-parsechangelog | sed -ne 's/^Version: //p' | sed -e 's/-[^-]*$//;s/^[0-9]*://']))