Debian Codegraph @

libstdc++-v3/scripts/update_release_branch.sh

raw
1 #!/bin/bash
2
3 # This should be run on a release branch after branching from trunk.
4 # Various links and references to trunk in the docs will be updated to
5 # refer to the new release branch.
6
7 # The major version of the new release branch.
8 major=$1
9 (($major)) || { echo "$0: Integer argument expected" >& 2 ; exit 1; }
10
11 # This assumes GNU sed
12 sed -i "s@^mainline GCC, not in any particular major.\$@the GCC ${major} series.@" doc/xml/manual/status_cxx*.xml
13 sed -i 's@https://gcc.gnu.org/cgit/gcc/tree/libstdc++-v3/testsuite/[^"]\+@&?h=releases%2Fgcc-'${major}@ doc/xml/manual/allocator.xml doc/xml/manual/mt_allocator.xml
14 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