From d262a3cc82124f57b8ba9730d6547ea986eff7d0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 2 Feb 1997 15:43:54 +0000 Subject: (POTFILES): Redirect to an intermediate file and write-protect POTFILES. --- po/Makefile.in.in | 7 +++++-- 1 file 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 .. \ -- cgit v1.2.3-70-g09d2