create autoregen.sh *before* shifting the options
authorStefan Kost <ensonic@users.sourceforge.net>
Fri, 3 Jun 2005 16:38:53 +0000 (16:38 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Fri, 3 Jun 2005 16:38:53 +0000 (16:38 +0000)
Original commit message from CVS:
create autoregen.sh *before* shifting the options

ChangeLog
gst-autogen.sh

index 38edf6c..1ce9df0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-06-03  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst-autogen.sh: create autoregen.sh *before* shifting the options
+
 2005-05-17  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * gst-autogen.sh: only update autoregen.sh on actual runs
index 1761fd4..e2df60f 100644 (file)
@@ -195,6 +195,11 @@ autogen_options ()
     return 0
   fi
 
+  # a silly hack that generates autoregen.sh but it's handy
+  echo "#!/bin/sh" > autoregen.sh
+  echo "./autogen.sh $@ \$@" >> autoregen.sh
+  chmod +x autoregen.sh
+
   while test "x$1" != "x" ; do
     optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     case "$1" in
@@ -265,12 +270,6 @@ autogen_options ()
     esac
   done
 
-  # a silly hack that generates autoregen.sh but it's handy
-  echo "#!/bin/sh" > autoregen.sh
-  echo "./autogen.sh $@ \$@" >> autoregen.sh
-  chmod +x autoregen.sh
-
-
   for arg do CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $arg"; done
   if test ! -z "$CONFIGURE_EXT_OPT"
   then