[med-svn] [camitk] 04/04: debian/rules: semplify dpkg-parsechangelog invocation using -S instead of sed(1)
Mattia Rizzolo
mattia at debian.org
Tue Apr 26 23:59:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository camitk.
commit 93f67df8cf7eb6e26db8e0a86ac71c521ed2c571
Author: Mattia Rizzolo <mattia at debian.org>
Date: Tue Apr 26 22:58:24 2016 +0000
debian/rules: semplify dpkg-parsechangelog invocation using -S instead of sed(1)
---
debian/changelog | 4 +++-
debian/rules | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9b8cc91..70ca56f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,8 +26,10 @@ camitk (4.0.0~beta-1) unstable; urgency=low
* Update copyright file.
[ Mattia Rizzolo ]
- * debian/rules: remove useless override in dh_builddeb: xz is the default now.
* Remove trailing whitespaces from all over debian/.
+ * debian/rules:
+ + Remove useless override in dh_builddeb: xz is the default now.
+ + Semplify dpkg-parsechangelog invocation using -S instead of sed(1).
-- Emmanuel Promayon <Emmanuel.Promayon at imag.fr> Wed, 27 Apr 2016 00:15:14 +0200
diff --git a/debian/rules b/debian/rules
index a98bc13..918d5d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# CamiTK version from d/changelog)
-CHANGELOG_VERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+CHANGELOG_VERSION := $(shell dpkg-parsechangelog -SVersion)
FULL_VERSION := $(shell echo '$(CHANGELOG_VERSION)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
VER_MAJOR := $(shell echo '$(FULL_VERSION)' | cut -f1 -d".")
VER_MINOR := $(shell echo '$(FULL_VERSION)' | cut -f2 -d".")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/camitk.git
More information about the debian-med-commit
mailing list