diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-02 15:43:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-02 15:43:54 +0000 |
commit | d262a3cc82124f57b8ba9730d6547ea986eff7d0 (patch) | |
tree | 896762334b6958919992b6f895924bab1d89aa03 /po | |
parent | badb35bdb74da8dc4e13bd35cd7f298eddd7b549 (diff) | |
download | coreutils-d262a3cc82124f57b8ba9730d6547ea986eff7d0.tar.xz |
(POTFILES): Redirect to an intermediate file and write-protect POTFILES.
Diffstat (limited to 'po')
-rw-r--r-- | po/Makefile.in.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/po/Makefile.in.in b/po/Makefile.in.in index 71e8aa35a..75176d777 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -241,9 +241,12 @@ POTFILES: POTFILES.in else \ posrcprefix="../"; \ fi; \ - sed -e '/^#/d' -e '/^[ ]*$$/d' \ + rm -f POTFILES-t POTFILES \ + && sed -e '/^#/d' -e '/^[ ]*$$/d' \ -e "s@.*@ $$posrcprefix& \\\\@" \ - -e '$$s/\(.*\) \\/\1/' < $(srcdir)/POTFILES.in > POTFILES ) + -e '$$s/\(.*\) \\/\1/' < $(srcdir)/POTFILES.in > POTFILES-t \ + && chmod a-w POTFILES-t \ + && mv POTFILES-t POTFILES ) Makefile: Makefile.in.in ../config.status POTFILES cd .. \ |