qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/3] configure: Move upper() up so it's available ea


From: Peter Maydell
Subject: [Qemu-devel] [PATCH 2/3] configure: Move upper() up so it's available earlier
Date: Thu, 14 Mar 2013 15:25:19 +0000

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 <address@hidden>
---
 configure |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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.
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]