Author: fejj
Date: 2007-12-04 17:50:18 -0500 (Tue, 04 Dec 2007)
New Revision: 90725

Modified:
   trunk/monodevelop/ChangeLog
   trunk/monodevelop/configure
Log:
minor configure fixes

Modified: trunk/monodevelop/ChangeLog
===================================================================
--- trunk/monodevelop/ChangeLog 2007-12-04 22:49:57 UTC (rev 90724)
+++ trunk/monodevelop/ChangeLog 2007-12-04 22:50:18 UTC (rev 90725)
@@ -1,3 +1,9 @@
+2007-12-04  Jeffrey Stedfast  <[EMAIL PROTECTED]>
+
+       * 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 <[EMAIL PROTECTED]> 
 
        * README: Flush.
@@ -8,5 +14,6 @@
 
 2007-12-04  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
-       * configure, profiles, MonoDevelop.mds, Makefile: Directory 
reorganization.
+       * configure, profiles, MonoDevelop.mds, Makefile: Directory
+       reorganization.
 

Modified: trunk/monodevelop/configure
===================================================================
--- trunk/monodevelop/configure 2007-12-04 22:49:57 UTC (rev 90724)
+++ trunk/monodevelop/configure 2007-12-04 22:50:18 UTC (rev 90725)
@@ -5,7 +5,7 @@
 
 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 @@
 }
 
 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 @@
                                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

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to