[tools] mm-macros: update to 0.9.5
[openwrt.git] / scripts / patch-specs.sh
index 2ab7790..3307b6b 100755 (executable)
@@ -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
This page took 0.026387 seconds and 4 git commands to generate.