]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(.pl): Make generated file read-only so
authorJim Meyering <jim@meyering.net>
Wed, 18 Dec 1996 01:25:45 +0000 (01:25 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 18 Dec 1996 01:25:45 +0000 (01:25 +0000)
I don't accidentally modify it instead of the one with the .pl suffix.

tests/join/Makefile.am

index dfed245c56b534b11bf97f8d0b57bd789860d563..ec18995decb025dcb804e93a598cb0164ab17a8a 100644 (file)
@@ -27,7 +27,9 @@ SUFFIXES = .pl
 
 .pl:
        rm -f $@ $@.tmp
-       $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+       $(editpl) $< > $@.tmp
+       chmod +x-w $@.tmp
+       mv $@.tmp $@
 
 MAINTAINERCLEANFILES = $x-tests $(in) $(exp)
 CLEANFILES = $(out) $(err)