From: jow 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-Tag: fast2504n-3.10.28-merged~7187 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=1379b2edd2b9098b463eda8b3d30af07e2c82bbc;p=openwrt.git [scripts] patch-specs.sh: gcc 3.4.6 has an additional "(OpenWrt-2.0)" after the version tag, cope with that git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29948 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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