]> gcc.gnu.org Git - gcc.git/commit
contrib: Fix non-portable sed commands in gcc-descr [PR102664/]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 8 Mar 2022 17:40:48 +0000 (17:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 9 Mar 2022 00:19:01 +0000 (00:19 +0000)
commit17bffa0c9f90df49bde6671816bde04008b6c5af
tree5204d5c4b51ddbfe25579c23956f3a487e1093a3
parent8d038a841a6bb8e11c122d96e8f72b47ca3895c0
contrib: Fix non-portable sed commands in gcc-descr [PR102664/]

POSIX sed does not support \? or \+ in its Basic Regular Expression
grammar. Replace the \(tags/\)\? part of the pattern with a substitution
to remove ^tags/ before other substitutions. Replace \([0-9]\+\) with
\([0-9][0-9]*\) or with \([1-9][0-9]*\) in release branch numbers, where
a leading zero does not occur.

contrib/ChangeLog:

PR other/102664
* git-descr.sh: Use portable sed commands.
* git-undescr.sh: Likewise.
contrib/git-descr.sh
contrib/git-undescr.sh
This page took 0.062566 seconds and 6 git commands to generate.