kernel: Avoid using the gawk-specific gensub function.
This commit is contained in:
parent
5d08aa21bf
commit
31dfc0ccf2
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
VERSION := $(shell dpkg -l linux-source 2> /dev/null | \
|
||||
awk '/^i/ {print gensub("([0-9]+[.][0-9]+[.][0-9]+)[.0-9]*", "\\1", "1", $$3)}')
|
||||
awk '/^i/ {match($$3, "[0-9]+[.][0-9]+[.][0-9]+"); if (RSTART) print substr($$3, RSTART, RLENGTH)}')
|
||||
TARBALL := /usr/src/linux-source-$(VERSION).tar.bz2
|
||||
|
||||
SUBVERSION := -core
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
VERSION := $(shell dpkg -l linux-source 2> /dev/null | \
|
||||
awk '/^i/ {print gensub("([0-9]+[.][0-9]+[.][0-9]+)[.0-9]*", "\\1", "1", $$3)}')
|
||||
awk '/^i/ {match($$3, "[0-9]+[.][0-9]+[.][0-9]+"); if (RSTART) print substr($$3, RSTART, RLENGTH)}')
|
||||
TARBALL := /usr/src/linux-source-$(VERSION).tar.bz2
|
||||
|
||||
SUBVERSION := -core
|
||||
|
|
Loading…
Reference in a new issue