# HG changeset patch # User Jim Meyering # Date 1250845018 -7200 # Node ID 76dbe14046dc0cdbf9bd5a7e47ef380dd41245c4 # Parent f17a5ed578bdf54ca39139223ebc971245b40c87 consistently remove $@-t before redirecting to it * modules/argz: Remove $@-t and $@ before redirecting to the former. * modules/alloca-opt: Likewise. * modules/byteswap: Likewise. * modules/fnmatch: Likewise. * modules/getopt-posix: Likewise. * modules/glob: Likewise. * modules/poll: Likewise. * modules/posix_spawnp-tests: Likewise. * modules/sys_socket: Likewise. * modules/sysexits: Likewise. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2009-08-21 Jim Meyering + + consistently remove $@-t before redirecting to it + * modules/argz: Remove $@-t and $@ before redirecting to the former. + * modules/alloca-opt: Likewise. + * modules/byteswap: Likewise. + * modules/fnmatch: Likewise. + * modules/getopt-posix: Likewise. + * modules/glob: Likewise. + * modules/poll: Likewise. + * modules/posix_spawnp-tests: Likewise. + * modules/sys_socket: Likewise. + * modules/sysexits: Likewise. + 2009-08-21 Eric Blake popen: simplify access to original popen diff --git a/modules/alloca-opt b/modules/alloca-opt --- a/modules/alloca-opt +++ b/modules/alloca-opt @@ -18,6 +18,7 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ } > $@-t diff --git a/modules/argz b/modules/argz --- a/modules/argz +++ b/modules/argz @@ -23,6 +23,7 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. argz.h: argz.in.h + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/argz.in.h; \ } > $@-t diff --git a/modules/byteswap b/modules/byteswap --- a/modules/byteswap +++ b/modules/byteswap @@ -16,6 +16,7 @@ # We need the following in order to create when the system # doesn't have one. byteswap.h: byteswap.in.h + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/byteswap.in.h; \ } > $@-t diff --git a/modules/fnmatch b/modules/fnmatch --- a/modules/fnmatch +++ b/modules/fnmatch @@ -28,6 +28,7 @@ # We need the following in order to create when the system # doesn't have one that supports the required API. fnmatch.h: fnmatch.in.h + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/fnmatch.in.h; \ } > $@-t diff --git a/modules/getopt-posix b/modules/getopt-posix --- a/modules/getopt-posix +++ b/modules/getopt-posix @@ -22,6 +22,7 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. getopt.h: getopt.in.h + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/getopt.in.h; \ } > $@-t diff --git a/modules/glob b/modules/glob --- a/modules/glob +++ b/modules/glob @@ -32,6 +32,7 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. glob.h: glob.in.h + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \ < $(srcdir)/glob.in.h; \ diff --git a/modules/poll b/modules/poll --- a/modules/poll +++ b/modules/poll @@ -22,6 +22,7 @@ # We need the following in order to create when the system # doesn't have one. poll.h: poll.in.h + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/poll.in.h; \ } > $@-t diff --git a/modules/posix_spawnp-tests b/modules/posix_spawnp-tests --- a/modules/posix_spawnp-tests +++ b/modules/posix_spawnp-tests @@ -36,12 +36,14 @@ BUILT_SOURCES += test-posix_spawn1.sh test-posix_spawn1.sh: test-posix_spawn1.in.sh + rm -f $@-t $@ cp $(srcdir)/test-posix_spawn1.in.sh $@-t mv $@-t $@ MOSTLYCLEANFILES += test-posix_spawn1.sh test-posix_spawn1.sh-t BUILT_SOURCES += test-posix_spawn2.sh test-posix_spawn2.sh: test-posix_spawn2.in.sh + rm -f $@-t $@ cp $(srcdir)/test-posix_spawn2.in.sh $@-t mv $@-t $@ MOSTLYCLEANFILES += test-posix_spawn2.sh test-posix_spawn2.sh-t diff --git a/modules/sys_socket b/modules/sys_socket --- a/modules/sys_socket +++ b/modules/sys_socket @@ -23,6 +23,7 @@ # doesn't have one that works with the given compiler. sys/socket.h: sys_socket.in.h @MKDIR_P@ sys + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ diff --git a/modules/sysexits b/modules/sysexits --- a/modules/sysexits +++ b/modules/sysexits @@ -17,6 +17,7 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. sysexits.h: sysexits.in.h + rm -f $@-t $@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_SYSEXITS_H''@|$(HAVE_SYSEXITS_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \