From 0f8028129b8f63279d720c67316d9e087546b087 Mon Sep 17 00:00:00 2001 From: DrSlony Date: Thu, 13 Dec 2012 22:06:02 +0000 Subject: [PATCH] Updated buildRT to sort the branches, as now Google seems to list them in a random order each time --- tools/buildRT | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/buildRT b/tools/buildRT index f57d6b902..bd9e3e459 100755 --- a/tools/buildRT +++ b/tools/buildRT @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Written by DrSlony -# Version 2.5, 2012-11-13 +# Version 2.6, 2012-12-13 # Please report bugs or enhancements to http://code.google.com/p/rawtherapee/issues/list # www.rawtherapee.com # www.londonlight.org @@ -14,7 +14,7 @@ getBranches () { branches=() while read branch _; do branches+=("$branch") - done < <(curl -s 'https://rawtherapee.googlecode.com/hg/?cmd=branchmap'; echo) + done < <(curl -s 'https://rawtherapee.googlecode.com/hg/?cmd=branchmap' | sort) } hgClone () { @@ -38,7 +38,7 @@ menu () { printf "%s\n------------------------------------------\n# - branch - build type\n------------------------------------------\n" printf "%s\n" "0 - only clone the repository and exit" printf "%s\n" "${list[@]:1}" | column -t - printf "%s\n" "------------------------------------------" "" "If you don't know which option to choose, then choose the \"default\" branch, \"release\" build type. Enter your choices, each number separated by a single space, e.g. 7 8" "" | fold -s + printf "%s\n" "------------------------------------------" "" "If you don't know which option to choose, then choose the \"default\" branch, \"release\" build type. Enter your choices, each number separated by a single space, e.g. 5 6" "" | fold -s read -p "Your choices: " -a choiceNumbers #sanitize