consistently remove $@-t before redirecting to it
authorJim Meyering <meyering@redhat.com>
Fri, 21 Aug 2009 08:56:58 +0000 (10:56 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 21 Aug 2009 08:56:58 +0000 (10:56 +0200)
* 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.

ChangeLog
modules/alloca-opt
modules/argz
modules/byteswap
modules/fnmatch
modules/getopt-posix
modules/glob
modules/poll
modules/posix_spawnp-tests
modules/sys_socket
modules/sysexits

index 580212cd48a12e17192a5711996932e83f914cab..8210003cfd95d052121490400c3836b797d458d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2009-08-21  Jim Meyering  <meyering@redhat.com>
+
+       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  <ebb9@byu.net>
 
        popen: simplify access to original popen
index 248b48613dc4eb07c01f7ce9bb152f51b4a9a547..e132ab8039577910b1803bdc7e0e056f07a81642 100644 (file)
@@ -18,6 +18,7 @@ BUILT_SOURCES += $(ALLOCA_H)
 # We need the following in order to create <alloca.h> 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
index 7ef73d5f5468ded4f9f19784164aaa04cc85c481..7c95859c09c12f0ddb7ffbd139b0dcc306e0de70 100644 (file)
@@ -23,6 +23,7 @@ BUILT_SOURCES += $(ARGZ_H)
 # We need the following in order to create <argz.h> 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
index 320e8a442fbd014c3e219dcb87816fc379fa2c41..c5057bb66aa08c9a22a4ecd65fb32cc1bb4624ef 100644 (file)
@@ -16,6 +16,7 @@ BUILT_SOURCES += $(BYTESWAP_H)
 # We need the following in order to create <byteswap.h> 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
index 441d5d381b4a9a34eefdb5a95c0a8313f19f6e9a..64d3cd9e68b2eab604b312ebaff615e67a355916 100644 (file)
@@ -28,6 +28,7 @@ BUILT_SOURCES += $(FNMATCH_H)
 # We need the following in order to create <fnmatch.h> 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
index b36ed1e33bdfbde20f1d272ee247aababac6c025..6b20f15462c5d4e9591b6a86e11560a7fb8e17ed 100644 (file)
@@ -22,6 +22,7 @@ BUILT_SOURCES += $(GETOPT_H)
 # We need the following in order to create <getopt.h> 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
index b765be7065601cb21ea9ae070a861ee8e9e4a91d..bf7af7c68b53f6aeec8b2c8ee08ebf604a11414f 100644 (file)
@@ -32,6 +32,7 @@ BUILT_SOURCES += $(GLOB_H)
 # We need the following in order to create <glob.h> 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; \
index b83cb2b0c5f7e33bdd18b261d9c015a25a432511..612189b1b5e4d84ca51d7b3f22619790ef24a1f6 100644 (file)
@@ -22,6 +22,7 @@ BUILT_SOURCES += $(POLL_H)
 # We need the following in order to create <poll.h> 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
index f8c7233f7217833f1bed0c228065e3b831a89013..61ea8e4b5d0ff6e4f141f18c713354115c822c33 100644 (file)
@@ -36,12 +36,14 @@ check_PROGRAMS += test-posix_spawn1 test-posix_spawn2
 
 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
index e07dd05f17889ebba38a4a1c90d7c890e3e66a59..37e9e45bb39ac1d0b4a16a39175f4eb87b03cddf 100644 (file)
@@ -23,6 +23,7 @@ BUILT_SOURCES += $(SYS_SOCKET_H)
 # 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' \
index 1f8460304310c8c77480fc17851f132507667f2d..99bcdd33b8833dbfa5ed779f4e385006bd43b94b 100644 (file)
@@ -17,6 +17,7 @@ BUILT_SOURCES += $(SYSEXITS_H)
 # We need the following in order to create <sysexits.h> 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' \