summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-10-17 00:05:01 -0400
committerMike Frysinger <vapier@gentoo.org>2014-10-17 00:05:01 -0400
commita899f18da2a22db25019fe1b2efa6b239e372b32 (patch)
tree50d8184caf93d5d8c6d1b262c613f1d040152e05
parentlayout.conf: set repo-name (diff)
downloadtoolchain-a899f18da2a22db25019fe1b2efa6b239e372b32.tar.gz
toolchain-a899f18da2a22db25019fe1b2efa6b239e372b32.tar.bz2
toolchain-a899f18da2a22db25019fe1b2efa6b239e372b32.zip
update-gcc: handle gcc-5.x snapshots
-rwxr-xr-xscripts/update-gcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update-gcc b/scripts/update-gcc
index 1d4d126..a84f724 100755
--- a/scripts/update-gcc
+++ b/scripts/update-gcc
@@ -37,7 +37,7 @@ for e in ${ebuilds} ; do
done
# Then load new ones.
-majors=$(awk '$(NF-2) ~ /^LATEST-/ { print gensub("LATEST-", "", "", $(NF-2)) }' ${l})
+majors=$(awk '$(NF-2) ~ /^LATEST-/ { print gensub("LATEST-", "", "", $(NF-2)) }' ${l} | sort -V)
echo "${PN} majors:" ${majors}
lm=