Commit 477ce833 authored by Christian Kastner's avatar Christian Kastner

d/rules: Simplify version parsing

parent e2b09176
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
#export DH_VERBOSE=1 #export DH_VERBOSE=1
# Get version numbers for SONAME from changelog # Get version numbers for SONAME from changelog
DVER = $(shell dpkg-parsechangelog | grep '^Version') DEBVER = $(shell dpkg-parsechangelog -S Version)
LVER = $(shell echo $(DVER) | sed -e 's/Version: \([0-9]*\)\..*/\1/') LVER = $(shell echo $(DEBVER) | sed -e 's/\([0-9]*\)\..*/\1/')
LSUBVER = $(shell echo $(DVER) | sed -e 's/Version: .*\.\([0-9]*\).*/\1/') LSUBVER = $(shell echo $(DEBVER) | sed -e 's/.*\.\([0-9]*\).*/\1/')
export LVER export LVER
export LSUBVER 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