summaryrefslogtreecommitdiff
path: root/po/Makefile.in.in
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-02 15:43:54 +0000
committerJim Meyering <jim@meyering.net>1997-02-02 15:43:54 +0000
commitd262a3cc82124f57b8ba9730d6547ea986eff7d0 (patch)
tree896762334b6958919992b6f895924bab1d89aa03 /po/Makefile.in.in
parentbadb35bdb74da8dc4e13bd35cd7f298eddd7b549 (diff)
downloadcoreutils-d262a3cc82124f57b8ba9730d6547ea986eff7d0.tar.xz
(POTFILES): Redirect to an intermediate file and write-protect POTFILES.
Diffstat (limited to 'po/Makefile.in.in')
-rw-r--r--po/Makefile.in.in7
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 .. \