Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Berman <tberman@mono-cvs.ximian.com>2004-06-22 10:02:06 +0400
committerTodd Berman <tberman@mono-cvs.ximian.com>2004-06-22 10:02:06 +0400
commiteb6cb51857a2e2ec9dbf9647ca3bd07b34ad5d88 (patch)
tree2cb4d55a6ad1b24a4f6a2cae5ee29fbd1e7dc389 /mcs/configure
parentccd3ed614a202b3d900aaf4f0a950deece7c8880 (diff)
2004-06-22 Todd Berman <tberman@off.net>
* configure: Patch from Mariano Su��rez-Alvarez <msuarezalvarez@arnet.com.ar> to make configure accept jhbuild style /prefix /usr options, and to continue past unknown options. Currently this patch is a bit spammy with multiple unknown options, anyone who is interested is welcome to fix this. svn path=/trunk/mcs/; revision=30093
Diffstat (limited to 'mcs/configure')
-rwxr-xr-xmcs/configure64
1 files changed, 41 insertions, 23 deletions
diff --git a/mcs/configure b/mcs/configure
index 48eb5b5483c..3abe43bad10 100755
--- a/mcs/configure
+++ b/mcs/configure
@@ -12,29 +12,47 @@ help()
prefix=/usr/local
profile=default
-for a in $*; do
- case $a in
- --help)
- help
- exit 0
- ;;
- --prefix=*)
- prefix=`echo $a | sed 's/--prefix=//'`;
- ;;
- --profile=*)
- profile=`echo $a | sed 's/--profile=//'`;
- if test ! -f build/profiles/$profile.make; then
- echo ""
- echo Error, profile $profile does not exist
- help
- exit 1;
- fi
- ;;
- *)
- echo Unknown option: $a
- help
- exit 1
- esac
+while [ $# -ne 0 ]; do
+ case $1 in
+ --help)
+ help
+ exit 0
+ ;;
+ --prefix=*)
+ prefix=`echo $1 | sed 's/--prefix=//'`;
+ shift
+ ;;
+ --prefix)
+ shift
+ prefix="$1"
+ shift
+ ;;
+ --profile=*)
+ profile=`echo $1 | sed 's/--profile=//'`
+ shift
+ if test ! -f build/profiles/$profile.make; then
+ echo ""
+ echo Error, profile $profile does not exist
+ help
+ exit 1;
+ fi
+ ;;
+ --profile)
+ shift
+ profile="$1"
+ shift
+ if test ! -f build/profiles/$profile.make; then
+ echo ""
+ echo Error, profile $profile does not exist
+ help
+ exit 1;
+ fi
+ ;;
+ *)
+ echo Unknown option: $1
+ help
+ shift
+ esac
done
echo "prefix=$prefix" > build/config.make