diff --git a/kernel/core-kernel-3.5/Makefile b/kernel/core-kernel-3.5/Makefile index 080962d5..4a2d0094 100644 --- a/kernel/core-kernel-3.5/Makefile +++ b/kernel/core-kernel-3.5/Makefile @@ -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 diff --git a/kernel/core-kernel-3.8/Makefile b/kernel/core-kernel-3.8/Makefile index 080962d5..4a2d0094 100644 --- a/kernel/core-kernel-3.8/Makefile +++ b/kernel/core-kernel-3.8/Makefile @@ -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