[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: fix compile for *.obj files
From: |
Alexandre Duret-Lutz |
Subject: |
FYI: fix compile for *.obj files |
Date: |
Tue, 12 Oct 2004 09:01:33 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
I'm checking this in on HEAD and branch-1-9.
2004-10-12 Alexandre Duret-Lutz <address@hidden>
* lib/compile: Handle output.obj in addition to output.o.
* tests/compile.test: Check for this.
Index: lib/compile
===================================================================
RCS file: /cvs/automake/automake/lib/compile,v
retrieving revision 1.7.4.2
diff -u -r1.7.4.2 compile
--- lib/compile 10 Sep 2004 18:47:55 -0000 1.7.4.2
+++ lib/compile 12 Oct 2004 06:56:16 -0000
@@ -1,7 +1,7 @@
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
-scriptversion=2004-09-10.20
+scriptversion=2004-10-12.08
# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
# Written by Tom Tromey <address@hidden>.
@@ -125,6 +125,8 @@
if test -f "$cofile"; then
mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+ mv "${cofile}bj" "$ofile"
fi
rmdir "$lockdir"
Index: tests/compile.test
===================================================================
RCS file: /cvs/automake/automake/tests/compile.test,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 compile.test
--- tests/compile.test 19 Sep 2004 21:42:20 -0000 1.1.2.2
+++ tests/compile.test 12 Oct 2004 06:56:16 -0000
@@ -41,3 +41,8 @@
test ! -f ./-o
test ! -f a.o
test -f a.c
+
+# Make sure `compile' works for .obj too.
+./compile touch a.obj -- -o ac.obj a.c
+test ! -f a.obj
+test ac.obj
--
Alexandre Duret-Lutz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: fix compile for *.obj files,
Alexandre Duret-Lutz <=