summaryrefslogtreecommitdiff
path: root/modules/glob
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-09-08 12:26:34 +0000
committerJim Meyering <jim@meyering.net>2006-09-08 12:26:34 +0000
commit0f55f1467a309da866fb443de970845827853569 (patch)
treec9326be98ae8962600a2085de1980d2883cf23c9 /modules/glob
parent17e3c59591f13d4e160601976a6151aee095eb39 (diff)
downloadgnulib-0f55f1467a309da866fb443de970845827853569.tar.gz
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:
Diffstat (limited to 'modules/glob')
-rw-r--r--modules/glob6
1 files changed, 2 insertions, 4 deletions
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 <glob.h> 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: