From 0c55e870b4da1aacd077db9d09e5360f9aac70bd Mon Sep 17 00:00:00 2001 From: "tgoff0@gmail.com" Date: Fri, 3 Apr 2015 01:44:00 +0000 Subject: [PATCH] kernel: Avoid using the gawk-specific gensub function. --- trunk/kernel/core-kernel-3.5/Makefile | 2 +- trunk/kernel/core-kernel-3.8/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/kernel/core-kernel-3.5/Makefile b/trunk/kernel/core-kernel-3.5/Makefile index 080962d5..4a2d0094 100644 --- a/trunk/kernel/core-kernel-3.5/Makefile +++ b/trunk/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/trunk/kernel/core-kernel-3.8/Makefile b/trunk/kernel/core-kernel-3.8/Makefile index 080962d5..4a2d0094 100644 --- a/trunk/kernel/core-kernel-3.8/Makefile +++ b/trunk/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