From: Alexandre Oliva Date: Sat, 27 Jan 2001 19:03:30 +0000 (+0000) Subject: * ltconfig.in: Shell portability fix for the tagname validity check. X-Git-Tag: multi-language-merge-point~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a25f5b252810b4d8b98356feabbacdbe203e8b5;p=thirdparty%2Flibtool.git * ltconfig.in: Shell portability fix for the tagname validity check. --- diff --git a/ChangeLog b/ChangeLog index e7012a3b4..3f59e144c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-01-25 Michael Sokolov , Alexandre Oliva + + * ltconfig.in: Shell portability fix for the tagname validity check. + 2001-01-25 Michael Sokolov * ltcf-cxx.sh: Use parentheses around eval $ac_compile. diff --git a/ltconfig.in b/ltconfig.in index c8c6cb3c7..189e3345e 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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 ;;