From: Jo-Philipp Wich Date: Sun, 29 Jan 2012 20:19:06 +0000 (+0000) Subject: [scripts] patch-specs.sh: gcc 3.4.6 has an additional "(OpenWrt-2.0)" after the versi... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=b0f8dde1083706e6eeb3825665910599c4b8a967 [scripts] patch-specs.sh: gcc 3.4.6 has an additional "(OpenWrt-2.0)" after the version tag, cope with that SVN-Revision: 29948 --- diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh index 2ab779084b..3307b6b090 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