From 1a6ccdc0cf06a3ac2bfac9277e21d890bcca92f8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 29 Jan 2012 20:19:06 +0000 Subject: patch-specs.sh: gcc 3.4.6 has an additional "(OpenWrt-2.0)" after the version tag, cope with that SVN-Revision: 29948 --- scripts/patch-specs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh index 2ab7790..3307b6b 100755 --- a/scripts/patch-specs.sh +++ b/scripts/patch-specs.sh @@ -62,7 +62,7 @@ patch_specs() { } -VERSION="$(STAGING_DIR="$DIR" "$CPP" --version | head -n1)" +VERSION="$(STAGING_DIR="$DIR" "$CPP" --version | sed -ne 's/^.* (.*) //; s/ .*$//; 1p')" VERSION="${VERSION:-unknown}" case "${VERSION##* }" in -- cgit v1.1