From bb172844a85a0d79aa7814510bfffdb168fa3bb4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 24 Dec 2021 17:22:00 -0800 Subject: maint: tight-scope-mk need not be read-only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * top/maint.mk (tight-scope.mk): Don’t bother to make tight-scope.mk read-only either. --- ChangeLog | 4 ++++ top/maint.mk | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0bcca2d3b4..7cfcc2893b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2021-12-24 Paul Eggert + 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: diff --git a/top/maint.mk b/top/maint.mk index a61bfda134..7345d45313 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -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 -- cgit v1.2.1