From 0f55f1467a309da866fb443de970845827853569 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 8 Sep 2006 12:26:34 +0000 Subject: Don't make generated files read-only. That would bother too many people. However, do retain the ability to work when targets are read-only: remove the destination and temporary files before writing them (when generated via sed or echo), or by using the -f option for both cp and mv commands. Suggestion to use -f from Paul Eggert. * modules/alloca-opt, modules/argz, modules/arpa_inet: * modules/byteswap, modules/configmake, modules/fcntl: * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes: * modules/localcharset, modules/netinet_in, modules/poll: * modules/stdbool, modules/stdint, modules/sys_select: * modules/sys_socket, modules/sys_stat, modules/sysexits: --- modules/glob | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/glob') diff --git a/modules/glob b/modules/glob index 8df7d5eb9b..2dc8ce1d60 100644 --- a/modules/glob +++ b/modules/glob @@ -30,10 +30,8 @@ EXTRA_DIST += glob_.h glob-libc.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. glob.h: glob_.h - rm -f $@-t $@ - cp $(srcdir)/glob_.h $@-t - chmod a-w $@-t - mv $@-t $@ + cp -f $(srcdir)/glob_.h $@-t + mv -f $@-t $@ MOSTLYCLEANFILES += glob.h glob.h-t Include: -- cgit v1.2.1