kernel: Avoid using the gawk-specific gensub function.

This commit is contained in:
tgoff0 2015-04-03 01:44:00 +00:00
parent 5d08aa21bf
commit 31dfc0ccf2
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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