diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-01 09:27:26 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-01 09:37:01 +0200 |
commit | df78af01a400f083c7c276ac02c1b6695d3dff94 (patch) | |
tree | aa15ab3c3e86a655bb878e87508d417af55edddd /doc | |
parent | bc935b35740f80d65e0f9642f92fd06c7edcaab0 (diff) | |
download | grep-df78af01a400f083c7c276ac02c1b6695d3dff94.tar.gz |
doc: generated files are best made read-only, ...
...to minimize risk of accidentally modifying the generated file
rather than its template. These are tiny, so no risk, but it's
a good to be consistent, so generated files are easier to spot.
* doc/Makefile.am (egrep.1 fgrep.1): When generating these files,
ensure that they too are created read-only.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index d8f2a8fa..b1a71d94 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -30,5 +30,6 @@ grep.1: grep.in.1 < $(srcdir)/grep.in.1 > $@-t && chmod 444 $@-t && mv $@-t $@ egrep.1 fgrep.1: Makefile.am - $(AM_V_GEN)inst=`echo grep | sed '$(transform)'`.1 \ - && echo ".so man1/$$inst" > $@-t && mv $@-t $@ + $(AM_V_GEN)rm -f $@ $@-t + $(AM_V_AT)inst=`echo grep | sed '$(transform)'`.1 \ + && echo ".so man1/$$inst" > $@-t && chmod 444 $@-t && mv $@-t $@ |