You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/23 11:38:28 UTC
svn commit: r818019 - /commons/sandbox/runtime/trunk/configure
Author: mturk
Date: Wed Sep 23 09:38:28 2009
New Revision: 818019
URL: http://svn.apache.org/viewvc?rev=818019&view=rev
Log:
No need to call tolower while parsing the params
Modified:
commons/sandbox/runtime/trunk/configure
Modified: commons/sandbox/runtime/trunk/configure
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/configure?rev=818019&r1=818018&r2=818019&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/configure (original)
+++ commons/sandbox/runtime/trunk/configure Wed Sep 23 09:38:28 2009
@@ -42,16 +42,6 @@
host=""
mach=""
-toupper()
-{
- echo "$1" | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-}
-
-tolower()
-{
- echo "$1" | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'
-}
-
for o
do
case "$o" in
@@ -111,11 +101,11 @@
shift
;;
--with-host=* )
- host=`tolower "$a"`
+ host="$a"
shift
;;
--with-cpu=* )
- mach=`tolower "$a"`
+ mach="$a"
shift
;;
* )
@@ -145,6 +135,16 @@
esac
done
+toupper()
+{
+ echo "$1" | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+}
+
+tolower()
+{
+ echo "$1" | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'
+}
+
major_sed='/#define.*ACR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'
minor_sed='/#define.*ACR_MINOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'
patch_sed='/#define.*ACR_PATCH_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'