Commit 01425eb0 authored by Christian Kastner's avatar Christian Kastner

d/rules: Use DEB_VERSION from dpkg/ instead of parsing d/changelog

parent fd8fbd10
......@@ -4,10 +4,12 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/
# Get version numbers for SONAME from changelog
DEBVER = $(shell dpkg-parsechangelog -S Version)
LVER = $(shell echo $(DEBVER) | sed -e 's/\([0-9]*\)\..*/\1/')
LSUBVER = $(shell echo $(DEBVER) | sed -e 's/.*\.\([0-9]*\).*/\1/')
LVER = $(shell echo $(DEB_VERSION) | sed -e 's/\([0-9]*\)\..*/\1/')
LSUBVER = $(shell echo $(DEB_VERSION) | sed -e 's/.*\.\([0-9]*\).*/\1/')
export LVER
export LSUBVER
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