From 3417e3559dd950769527077b0b64c22e1c6a8217 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 23 Dec 2021 14:32:50 -0800 Subject: [PATCH 3/4] 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. Put a DO NOT EDIT line at the start, though. --- ChangeLog | 5 +++++ top/maint.mk | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d36eada04..1bb2735ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2021-12-23 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. Put a DO NOT EDIT line + at the start, though. + 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 a61bfda13..7345d4531 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 -- 2.32.0