Commit ca5f2d65 authored by Mike Gabriel's avatar Mike Gabriel

debian/rules: Avoid using dpkg-parsechangelog.

parent 56167b79
......@@ -3,6 +3,8 @@
#export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with phpcomposer
......@@ -58,8 +60,8 @@ override_dh_installchangelogs:
dh_installchangelogs change_log.txt
PKD = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
PKG = $(DEB_SOURCE)
UVER = $(shell echo $(DEB_VERSION) | cut -d "-" -f1)
DTYPE = +selfpack1
VER ?= $(subst $(DTYPE),,$(UVER))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment