[Piuparts-devel] [Git][debian/piuparts][develop] Makefile: use dpkg-parsechangelog -S instead of sed

Nicolas Dandrimont (@olasd) gitlab at salsa.debian.org
Wed Jan 11 15:15:25 GMT 2023



Nicolas Dandrimont pushed to branch develop at Debian / piuparts


Commits:
320b7cbb by Nicolas Dandrimont at 2023-01-11T16:15:00+01:00
Makefile: use dpkg-parsechangelog -S instead of sed

- - - - -


1 changed file:

- Makefile


Changes:

=====================================
Makefile
=====================================
@@ -10,11 +10,11 @@ site3 = $(libdir)/python3/dist-packages
 htdocsdir	 = $(sharedir)/piuparts/htdocs
 etcdir = $(prefix)/etc
 
-distribution=${shell dpkg-parsechangelog | sed -n 's/^Distribution: *//p'}
+distribution=${shell dpkg-parsechangelog -SDistribution}
 ifeq ($(distribution),UNRELEASED)
-version		:= ${shell echo "`dpkg-parsechangelog | sed -n 's/^Version: *//p'`~`date +%Y%m%d%H%M`~`git describe --dirty`"}
+version		:= ${shell echo "`dpkg-parsechangelog -SVersion`~`date +%Y%m%d%H%M`~`git describe --dirty`"}
 else
-version		:= ${shell dpkg-parsechangelog | sed -n 's/^Version: *//p'}
+version		:= ${shell dpkg-parsechangelog -SVersion}
 endif
 
 



View it on GitLab: https://salsa.debian.org/debian/piuparts/-/commit/320b7cbbfa3f81e65421d281736c1b791902935a

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/commit/320b7cbbfa3f81e65421d281736c1b791902935a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20230111/83afd6e7/attachment-0001.htm>


More information about the Piuparts-devel mailing list