diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-29 20:19:06 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-29 20:19:06 +0000 |
commit | c10c357a74b05485da3b19a8c177002c4724dc1e (patch) | |
tree | 1d0812435cf54435132e16a6cbedb61c13ee6c0f | |
parent | acd9bb6f8d38cff721133aa7062941981e5bdee2 (diff) | |
download | upstream-c10c357a74b05485da3b19a8c177002c4724dc1e.tar.gz upstream-c10c357a74b05485da3b19a8c177002c4724dc1e.tar.bz2 upstream-c10c357a74b05485da3b19a8c177002c4724dc1e.zip |
[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
-rwxr-xr-x | scripts/patch-specs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |