Jelajahi Sumber

patch-specs.sh: gcc 3.4.6 has an additional "(OpenWrt-2.0)" after the version tag, cope with that

SVN-Revision: 29948
Jo-Philipp Wich 14 tahun lalu
induk
melakukan
1a6ccdc0cf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      scripts/patch-specs.sh

+ 1 - 1
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}"
 VERSION="${VERSION:-unknown}"
 
 
 case "${VERSION##* }" in
 case "${VERSION##* }" in