Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix upstream version parsing
[deb_dpdk.git]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index
b1af522
..
25d77e0
100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-4,7
+4,7
@@
export DH_VERBOSE=1
export DH_OPTIONS=-v
export DH_VERBOSE=1
export DH_OPTIONS=-v
-VERSION := $(shell dpkg-parsechangelog
| sed -nr '/^Version:/s/Version: (.*:)?(.*)-(
.*)/\2/p')
+VERSION := $(shell dpkg-parsechangelog
--show-field Version | sed -nr 's/(.*:)?([^-])(-
.*)/\2/p')
DPDK_ABI := $(shell echo $(VERSION) | cut -d '.' -f1-2)
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPDK_ABI := $(shell echo $(VERSION) | cut -d '.' -f1-2)
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*