From: Michael Sokolov Date: Sat, 27 Jan 2001 19:34:13 +0000 (+0000) Subject: * ltconfig: Shell portability fix for the tagname validity check. X-Git-Tag: jimb_gnu_v3_branchpoint~343 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02d01ed4c83d955898f7ce2c5c144d6127d8cfc4;p=external%2Fbinutils.git * ltconfig: Shell portability fix for the tagname validity check. --- diff --git a/ChangeLog b/ChangeLog index a31dca7..ea01fcf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-01-27 Michael Sokolov , Alexandre Oliva + + * ltconfig: Shell portability fix for the tagname validity check. + 2001-01-27 Michael Sokolov * ltcf-cxx.sh: Use parentheses around eval $ac_compile. diff --git a/ltconfig b/ltconfig index fb0bf8b..7130a6f 100755 --- a/ltconfig +++ b/ltconfig @@ -422,8 +422,10 @@ fi if test -n "$tagname"; then # Check whether tagname contains only valid characters - case "$tagname" in - *[!-_A-Za-z0-9,/]*) + case `$echo "X$tagname" | + $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in + "") ;; + *) echo "$progname: invalid tag name: $tagname" 1>&2 exit 1 ;;