From: Jim Meyering Date: Sat, 16 Aug 2003 20:46:08 +0000 (+0000) Subject: (.x.1): Ensure that generated PROGRAM.1 files are read-only. X-Git-Tag: v5.0.91~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8f680c78e871d14f427a3f2a1b71970c6f404f;p=thirdparty%2Fcoreutils.git (.x.1): Ensure that generated PROGRAM.1 files are read-only. --- diff --git a/man/Makefile.am b/man/Makefile.am index e9ac583a25..22c7f36ec5 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