summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-03-08 16:44:17 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-03-08 16:46:36 +0000
commit10ecf5182a0f63d79a44b953483ecfbb54d29bcb (patch)
tree0d0602ca0a8db698e08b4e4977d0fd2df8523c2d /contrib
parent058d19b42ad4c4c22635f70db6913a80884aedec (diff)
downloadgcc-10ecf5182a0f63d79a44b953483ecfbb54d29bcb.tar.gz
contrib: Fix gcc-descr script [PR102664]
POSIX expr does not support the 'match' keyword, so the git-descr.sh scripts should use ':' instead. contrib/ChangeLog: PR other/102664 * git-descr.sh: Use portable form of expr match.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/git-descr.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/git-descr.sh b/contrib/git-descr.sh
index eb258148a66..ba5d711f330 100755
--- a/contrib/git-descr.sh
+++ b/contrib/git-descr.sh
@@ -23,7 +23,7 @@ elif test x$long = xyes; then
r=$(git describe --all --abbrev=40 --match 'basepoints/gcc-[0-9]*' $c | sed -n 's,^\(tags/\)\?basepoints/gcc-,r,p')
else
r=$(git describe --all --abbrev=14 --match 'basepoints/gcc-[0-9]*' $c | sed -n 's,^\(tags/\)\?basepoints/gcc-,r,p');
- expr match ${r:-no} 'r[0-9]\+$' >/dev/null && r=${r}-0-g$(git rev-parse $c);
+ expr ${r:-no} : 'r[0-9]\+$' >/dev/null && r=${r}-0-g$(git rev-parse $c);
fi;
if test -n $r; then
o=$(git config --get gcc-config.upstream);