diff options
author | Jim Meyering <jim@meyering.net> | 2006-09-08 12:26:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-09-08 12:26:34 +0000 |
commit | 0f55f1467a309da866fb443de970845827853569 (patch) | |
tree | c9326be98ae8962600a2085de1980d2883cf23c9 /modules/poll | |
parent | 17e3c59591f13d4e160601976a6151aee095eb39 (diff) | |
download | gnulib-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/poll')
-rw-r--r-- | modules/poll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/poll b/modules/poll index 87454c5c66..9784c43414 100644 --- a/modules/poll +++ b/modules/poll @@ -18,10 +18,8 @@ EXTRA_DIST += poll_.h # We need the following in order to create <poll.h> when the system # doesn't have one. poll.h: poll_.h - rm -f $@-t $@ - cp $(srcdir)/poll_.h $@-t - chmod a-w $@-t - mv $@-t $@ + cp -f $(srcdir)/poll_.h $@-t + mv -f $@-t $@ MOSTLYCLEANFILES += poll.h poll.h-t Include: |