From: Jim Meyering Date: Sun, 2 Feb 1997 15:43:54 +0000 (+0000) Subject: (POTFILES): Redirect to an intermediate file and write-protect POTFILES. X-Git-Tag: SH-UTILS-1_16a~288 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d262a3cc82124f57b8ba9730d6547ea986eff7d0;p=thirdparty%2Fcoreutils.git (POTFILES): Redirect to an intermediate file and write-protect POTFILES. --- diff --git a/po/Makefile.in.in b/po/Makefile.in.in index 71e8aa35ab..75176d777a 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 .. \