From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 0CF5F3875DDE; Thu, 27 Jun 2024 06:50:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0CF5F3875DDE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0CF5F3875DDE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719471041; cv=none; b=SbDmgxyZaAEGBvYme8H2qJNIQ0VMpteSh9J6Jo2eifyU0WMK8z1Fl3WhXkeO6+Tm0yKcWnRYqWUDD9uzp6tPk6fOC62vEYI0u1zpyZ8Tc5UMBrGRDaNPTaHn3DX/g23sbsa7gwERGxWNepz4rY1KuEcq8G6PFYj+C7c1iH0nj+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719471041; c=relaxed/simple; bh=BJwHAXPVmPb3FDtalZ4fFXWhyWzsK2IcuQ/WKN3ZTNQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=kfy3bO2acFk3yYHUsYIPMNPXiwPbDQy1y8S5OayaX4iTJ1n8/fjx1vKW3dF+dDZMxi31C5YKIqqY9XTqShxkb/kbiGIzfAwmGPgcaA7ZT5cmYCz5tokfjx17hSYb79bPBZnS2P5kc+4x1Mh9UTPt30SbDILndIeDfkYHxuUYGjg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a727d9dd367so305827066b.3; Wed, 26 Jun 2024 23:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719471038; x=1720075838; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fWEmPcZWe7GU8FEb1hn7GoOYEaa6zV9I8k2jKRwewB4=; b=kOmUAr9SaDhlhfMFM+QK6J+avvy6cNGleBK+L1/3VyebsCKbiGzwjDrgNV8eEv+B6T nqSUni1mBJZaXe0dXLm6du4bbKvdELMlB6++cEKF71fyM+ao07Faezo/EdiYEIFa/lDx xuLA572E/DlrACbhoNNbdo6ZaFD934r8HG6b6wEbWp4whJJsVd0iJG/l0f0kb0z/cvPl Og5Yaq2Uz5oeNZMbcvIftMBNR0SaU/bb5dwADSAoe4nKOFGuJXaJcauDT295eR7SEnAA VgrQ9HjUJWeYVSy/OZQiRxlbDhNgUvTWxCx1JZ0GUyoXDad/F44PBFVYHZOh9Ry6tL1m T/bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719471038; x=1720075838; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fWEmPcZWe7GU8FEb1hn7GoOYEaa6zV9I8k2jKRwewB4=; b=ZH6YfJLDO2WAJTI9aYjBfnrS9Y5wqkGrZmSL4Ls59EukT+91VTQXpvwcF81QQa9odj R+cmTsubrpFJ0UyHWyRX4UYPXqBMgAva6aXMpcGdlxOfViODPZpnLyDSOAk/CEmwJT5K Q9WnKHye+tPqgOaynBBF5q8hD67Emjzwkp4JdZhrX3Zv01fuGkVJ1BTVF5lMfig0b4qC WC/r91b/XBOEJ4cXlVEb/jB93VYs1F+i/6qad2VgfuOHZW/PZCvlRqR9Ek7FOloYFQ1u 5N4Et29ByFiq6cd8uVkDDCARNqVYL67spYw6Flk7O1KNRwi3NmF0FVx4ohnpeWwEXMZ2 FAFw== X-Forwarded-Encrypted: i=1; AJvYcCW1uFx9PFEqLIq4CfqwtUTzLQ5qrASe2xvLZ3G4Q+oT5mm8FVxHv5AzmzGBYJ/8p88h6gRISaza1ON4aGJrqbL4uyKW689eg0kPNNFR1J4aVWZCBBUmvNF8vZ5rURtw X-Gm-Message-State: AOJu0YyzUSELABkVumg6neDDUQLIuw+b0wiGjYtP7RiaT+oJecLTB7zs 7NOdh6qFqEJHqOXwCD695b1nWV4oBEJv4giiBfeJCslMai3KP2yBInFntOTwtM0iCG3/Ghw9CBL 6pB/OFxmZ1qEQjhaRQ2g+hqdZOcw= X-Google-Smtp-Source: AGHT+IFPhdIK9gFS3HXV8vhpcK5zJLmEhic8Da81gmbAO3Vr324FeRePJdM9YwCKGmHGXzhiObeyZkRkC6hnveZUahk= X-Received: by 2002:a17:907:7649:b0:a6f:e5f7:e966 with SMTP id a640c23a62f3a-a7242c4d33amr1052429866b.45.1719471037253; Wed, 26 Jun 2024 23:50:37 -0700 (PDT) MIME-Version: 1.0 References: <20240625231242.2631700-1-jwakely@redhat.com> In-Reply-To: From: Jonathan Wakely Date: Thu, 27 Jun 2024 07:50:25 +0100 Message-ID: Subject: Re: [PATCH] libstdc++: Add script to update docs for a new release branch To: Eric Gallager Cc: Jonathan Wakely , "libstdc++" , gcc-patches Content-Type: multipart/alternative; boundary="000000000000608fcd061bd98cc6" X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,HTML_MESSAGE,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000608fcd061bd98cc6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 27 Jun 2024, 05:05 Eric Gallager, wrote: > On Wed, Jun 26, 2024 at 4:28=E2=80=AFPM Jonathan Wakely > wrote: > > > > Pushed to trunk. We have nearly a year to make improvements to it > > before it's needed for the gcc-15 branch ... I just hope I remember it > > exists when we branch ;-) > > Maybe you could leave a note about it in the docs somewhere? > The release managers already have a note to poke the libstdc++ maintainer when branching. > > > > On Wed, 26 Jun 2024 at 00:13, Jonathan Wakely > wrote: > > > > > > This script automates some updates that should be made when branching > > > from trunk. Putting them in a script makes it much easier and means I > > > won't forget what should be done. > > > > > > Any suggestions for doing this differently? > > > > > > Anything I've forgotten that should be added here? > > > > > > We could add an entry to the lists of versions at > > > > https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html#abi.versioning.g= oals > > > but that should really be done when bumping the libtool version, not > > > when branching from trunk. > > > > > > -- >8 -- > > > > > > This should be run on a release branch after branching from trunk. > > > Various links and references to trunk in the docs will be updated to > > > refer to the new release branch. > > > > > > libstdc++-v3/ChangeLog: > > > > > > * scripts/update_release_branch.sh: New file. > > > --- > > > libstdc++-v3/scripts/update_release_branch.sh | 14 ++++++++++++++ > > > 1 file changed, 14 insertions(+) > > > create mode 100755 libstdc++-v3/scripts/update_release_branch.sh > > > > > > diff --git a/libstdc++-v3/scripts/update_release_branch.sh > b/libstdc++-v3/scripts/update_release_branch.sh > > > new file mode 100755 > > > index 00000000000..f8109ed0ba3 > > > --- /dev/null > > > +++ b/libstdc++-v3/scripts/update_release_branch.sh > > > @@ -0,0 +1,14 @@ > > > +#!/bin/bash > > > + > > > +# This should be run on a release branch after branching from trunk. > > > +# Various links and references to trunk in the docs will be updated = to > > > +# refer to the new release branch. > > > + > > > +# The major version of the new release branch. > > > +major=3D$1 > > > +(($major)) || { echo "$0: Integer argument expected" >& 2 ; exit 1; } > > > + > > > +# This assumes GNU sed > > > +sed -i "s@^mainline GCC, not in any particular major.\$@the GCC > ${major} series.@" doc/xml/manual/status_cxx*.xml > > > +sed -i 's@https://gcc.gnu.org/cgit/gcc/tree/libstdc++-v3/testsuite/[ > > ^"]\+@&?h=3Dreleases%2Fgcc-'${major}@ doc/xml/manual/allocator.xml > doc/xml/manual/mt_allocator.xml > > > +sed -i "s@ > https://gcc.gnu.org/onlinedocs/gcc/Invoking-GCC.html@https://gcc.gnu.org/= onlinedocs/gcc-${major}.1.0/gcc/Invoking-GCC.html@" > doc/xml/manual/using.xml > > > -- > > > 2.45.2 > > > > > > --000000000000608fcd061bd98cc6--