automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-commit] [SCM] GNU Automake branch, msvc, updated. v1.11-168-g8


From: Peter Rosin
Subject: [Automake-commit] [SCM] GNU Automake branch, msvc, updated. v1.11-168-g89bf665
Date: Mon, 15 Nov 2010 09:33:51 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".

http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=89bf665808e6ed7a68957342e6343cf3261ebf14

The branch, msvc has been updated
       via  89bf665808e6ed7a68957342e6343cf3261ebf14 (commit)
      from  17a7a6fc74a440b8bc5c02d0089ebdafe000ca62 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 89bf665808e6ed7a68957342e6343cf3261ebf14
Author: Peter Rosin <address@hidden>
Date:   Mon Nov 15 10:27:55 2010 +0100

    compile: clear the `eat' variable earlier.
    
    * lib/compile: Clear the `eat' variable earlier.
    * tests/compile3.test: Prevent regressions.
    
    Signed-off-by: Peter Rosin <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    6 ++++++
 lib/compile         |    3 ++-
 tests/compile3.test |    4 ++++
 3 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ad402d0..5e326d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-15  Peter Rosin  <address@hidden>
+
+       compile: clear the `eat' variable earlier.
+       * lib/compile: Clear the `eat' variable earlier.
+       * tests/compile3.test: Prevent regressions.
+
 2010-10-07  Peter Rosin  <address@hidden>
 
        depcomp: add new one-pass depmode for MSVC 7 and later.
diff --git a/lib/compile b/lib/compile
index 46caccc..1c6f105 100755
--- a/lib/compile
+++ b/lib/compile
@@ -192,6 +192,8 @@ func_cl_wrapper ()
   exit 1
 }
 
+eat=
+
 case $1 in
   '')
      echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
@@ -223,7 +225,6 @@ esac
 
 ofile=
 cfile=
-eat=
 
 for arg
 do
diff --git a/tests/compile3.test b/tests/compile3.test
index e376800..5a5be7e 100755
--- a/tests/compile3.test
+++ b/tests/compile3.test
@@ -46,4 +46,8 @@ test x"$opts" = x"-c foo.c -Fofoo.o -Ibaz"
 opts=`./compile ./cl -c foo.cc -o foo.o -Ibaz`
 test x"$opts" = x"-c -Tpfoo.cc -Fofoo.o -Ibaz"
 
+# Check if compile clears the "eat" variable properly.
+opts=`eat=1 ./compile ./cl -c foo.c -o foo.obj -Ibaz`
+test x"$opts" = x"-c foo.c -Fofoo.obj -Ibaz"
+
 :


hooks/post-receive
-- 
GNU Automake



reply via email to

[Prev in Thread] Current Thread [Next in Thread]