[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 2/2] Use newish dpkg-parsechangelog -S option instead of grep and cut



---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 1bcd84c..c2f3a97 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,10 @@
 # independent of their Debian packaging in the debian directory.
 
 # Basic package information.
-PACKAGE   := $(shell dpkg-parsechangelog | grep '^Source:' | cut -d' ' -f2)
-TIMESTAMP := $(shell dpkg-parsechangelog | grep '^Timestamp:' | cut -d' ' -f2)
+PACKAGE   := $(shell dpkg-parsechangelog -SSource)
+TIMESTAMP := $(shell dpkg-parsechangelog -STimestamp)
 DATE      := $(shell date -d '@$(TIMESTAMP)' +'%Y-%m-%d')
-VERSION   := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2)
+VERSION   := $(shell dpkg-parsechangelog -SVersion)
 
 # Conversion programs to use.  Export these so that they're visible to
 # submakes.
-- 
2.13.0.219.gdb65acc882


Reply to: