2001-10-06 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
authorRob Savoye <rob@welcomehome.org>
Sun, 7 Oct 2001 04:10:28 +0000 (04:10 +0000)
committerRob Savoye <rob@welcomehome.org>
Sun, 7 Oct 2001 04:10:28 +0000 (04:10 +0000)
* Check for Makefile style arguments in the second pass, but
ignore them, so they don't become invalid arguments.

ChangeLog
runtest.exp

index 22fab06..86f3aaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-06  Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
+
+       * Check for Makefile style arguments in the second pass, but
+       ignore them, so they don't become invalid arguments.
+
 2001-10-02  Nick Clifton  <nickc@cambridge.redhat.com>
 
         * lib/remote.exp (proc file_on_host): Fix typo in construction
index 2606efe..4eb2a07 100755 (executable)
@@ -20,7 +20,7 @@
 
 # This file was written by Rob Savoye. (rob@welcomehome.org)
 
-set frame_version      1.4.2
+set frame_version      1.4.2.x
 if ![info exists argv0] {
     send_error "Must use a version of Expect greater than 5.0\n"
     exit 1
@@ -1164,6 +1164,10 @@ for { set i 0 } { $i < $argc } { incr i } {
            exit 0      
        }
 
+       "[A-Z0-9_-.]*=*" { # skip makefile style args like CC=gcc, etc... (processed in first pass)
+               continue
+       }
+  
        default {
            if [info exists tool] {
                if { [info proc ${tool}_option_proc] != "" } {