diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2007-12-05 01:50:18 +0300 |
---|---|---|
committer | Jeffrey Stedfast <fejj@novell.com> | 2007-12-05 01:50:18 +0300 |
commit | 031e67f5b4606e757e6285477acbac504092bd19 (patch) | |
tree | 212596936dcabe95b2a17a97a02a8019c977aad7 | |
parent | a4e809833a2247c25172018bc647fba602a5ca70 (diff) |
minor configure fixes
svn path=/trunk/monodevelop/; revision=90725
-rw-r--r-- | ChangeLog | 9 | ||||
-rwxr-xr-x | configure | 42 |
2 files changed, 35 insertions, 16 deletions
@@ -1,3 +1,9 @@ +2007-12-04 Jeffrey Stedfast <fejj@novell.com> + + * configure (profile): Fixed a typo (s/--prfile/--profile/) and + also fixed to allow --prefix /path/to/install in addition to the + already supported --prefix=/path/to/install + 2007-12-05 Lluis Sanchez Gual <lluis@novell.com> * README: Flush. @@ -8,5 +14,6 @@ 2007-12-04 Lluis Sanchez Gual <lluis@novell.com> - * configure, profiles, MonoDevelop.mds, Makefile: Directory reorganization. + * configure, profiles, MonoDevelop.mds, Makefile: Directory + reorganization. @@ -5,7 +5,7 @@ profile=stable usage () { - echo "Usage : configure [--prefix=PREFIX] [--prfile=PROFILE]" + echo "Usage : configure [--prefix=PREFIX] [--profile=PROFILE]" echo echo "Profiles available :" ls -1 profiles @@ -79,16 +79,16 @@ create_local_config () } while test x$1 != x; do - case $1 in - --prefix=*) - prefix=`echo $1 | sed 's/--prefix=//'` - ;; - --prefix) - echo --prefix needs an argument: --prefix=directory >&2 - - ;; + case $1 in + --prefix=*) + prefix=`echo $1 | sed 's/--prefix=//'` + ;; + --prefix) + shift + prefix=$1 + ;; --profile=*) - prof=`echo $1 | sed 's/--profile=//'` + prof=`echo $1 | sed 's/--profile=//'` validate_profile "$prof" if [ $? -eq 1 ]; then profile=$prof @@ -97,18 +97,30 @@ while test x$1 != x; do usage exit 1 fi - ;; + ;; + --profile) + shift + prof=$1 + validate_profile "$prof" + if [ $? -eq 1 ]; then + profile=$prof + else + echo "Invalid profile name - $conf" + usage + exit 1 + fi + ;; --help) usage exit ;; - *) - echo Unknown argument $1 >&2 + *) + echo Unknown argument $1 >&2 usage exit 1 ;; - esac - shift + esac + shift done configure_packages |