maint: tight-scope-mk need not be read-only
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Dec 2021 01:22:00 +0000 (17:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Dec 2021 01:27:26 +0000 (17:27 -0800)
* top/maint.mk (tight-scope.mk): Don’t bother to make
tight-scope.mk read-only either.

ChangeLog
top/maint.mk

index 0bcca2d3b498b832ef555cc0f0f4e4df16644050..7cfcc2893b387b0535508d2c038c903291a048eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-12-24  Paul Eggert  <eggert@cs.ucla.edu>
 
+       maint: tight-scope-mk need not be read-only
+       * top/maint.mk (tight-scope.mk): Don’t bother to make
+       tight-scope.mk read-only either.
+
        maint: break out '&& mv $@-t $@'
        * build-aux/git-version-gen, config/argz.mk, modules/configmake:
        * modules/posix_spawnp-tests, modules/snippet/link-warning:
index a61bfda1342fd7ea8415bc904fadba1e2546138c..7345d45313f7b72cabc25bdfda4a85a6892374e0 100644 (file)
@@ -1702,9 +1702,8 @@ sc_tight_scope: tight-scope.mk
        exit $$fail
 
 tight-scope.mk: $(ME)
-       @rm -f $@ $@-t
        @perl -ne '/^# TS-start/.../^# TS-end/ and print' $(srcdir)/$(ME) > $@-t
-       @chmod a=r $@-t && mv $@-t $@
+       @mv $@-t $@
 
 ifeq (a,b)
 # TS-start