Patchwork [2/3] configure: Move upper() up so it's available earlier

login
register
mail settings
Submitter Peter Maydell
Date March 14, 2013, 3:25 p.m.
Message ID <1363274720-22535-3-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/227703/
State New
Headers show

Comments

Peter Maydell - March 14, 2013, 3:25 p.m.
Move the definition of the upper() utility function up to
the top of the script, so that it's available to any code that
wants to use it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 configure |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/configure b/configure
index c674d39..d9dfde0 100755
--- a/configure
+++ b/configure
@@ -27,6 +27,10 @@  printf " '%s'" "$0" "$@" >> config.log
 echo >> config.log
 echo "#" >> config.log
 
+upper() {
+    echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]'
+}
+
 error_exit() {
     echo
     echo "ERROR: $1"
@@ -4055,10 +4059,6 @@  fi
 
 symlink "$source_path/Makefile.target" "$target_dir/Makefile"
 
-upper() {
-    echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]'
-}
-
 case "$cpu" in
   i386|x86_64|ppc)
     # The TCG interpreter currently does not support ld/st optimization.