aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patch-specs.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-29 20:19:06 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-29 20:19:06 +0000
commit1a6ccdc0cf06a3ac2bfac9277e21d890bcca92f8 (patch)
tree303fddd003e09667ac629c19a4675da5701d6403 /scripts/patch-specs.sh
parent0c3a38397429ea83220793aadd5c81b26040f158 (diff)
downloadupstream-1a6ccdc0cf06a3ac2bfac9277e21d890bcca92f8.tar.gz
upstream-1a6ccdc0cf06a3ac2bfac9277e21d890bcca92f8.tar.bz2
upstream-1a6ccdc0cf06a3ac2bfac9277e21d890bcca92f8.zip
patch-specs.sh: gcc 3.4.6 has an additional "(OpenWrt-2.0)" after the version tag, cope with that
SVN-Revision: 29948
Diffstat (limited to 'scripts/patch-specs.sh')
-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 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