diff options
author | Jim Meyering <jim@meyering.net> | 2003-08-16 20:46:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-08-16 20:46:08 +0000 |
commit | 4f8f680c78e871d14f427a3f2a1b71970c6f404f (patch) | |
tree | 5adaa9cc3b0bc829369ba7570411c2e20d06ec2f | |
parent | eebf88c0b6e5bf36b5eb28f8f072b04fb9b08dc7 (diff) | |
download | coreutils-4f8f680c78e871d14f427a3f2a1b71970c6f404f.tar.xz |
(.x.1): Ensure that generated PROGRAM.1 files are read-only.
-rw-r--r-- | man/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index e9ac583a2..22c7f36ec 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -125,12 +125,14 @@ mapped_name = `echo $*|sed 's/install/ginstall/; s/test/[/'` # That is necessary to avoid failures for programs that are also shell built-in # functions like echo, false, printf, pwd. .x.1: + rm -rf $@ @echo "Updating man page $@"; \ mkdir $t; \ (cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $*$(EXEEXT)); \ $(HELP2MAN) \ --include=$(srcdir)/$*.x \ --output=$@ $t/$*$(EXEEXT); \ + chmod a-w $@ rm -rf $t check-local: check-x-vs-1 check-programs-vs-x |