summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-29 20:19:06 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-29 20:19:06 +0000
commit1379b2edd2b9098b463eda8b3d30af07e2c82bbc (patch)
tree1d0812435cf54435132e16a6cbedb61c13ee6c0f /scripts
parent145008f98d1306d2438f37a90adc38076318856c (diff)
[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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/patch-specs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh
index 2ab779084..3307b6b09 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