From 92769744aed0bae7bcfb6a1621aac62484922e62 Mon Sep 17 00:00:00 2001 From: Michael Sokolov Date: Sat, 27 Jan 2001 19:48:46 +0000 Subject: * ltconfig: Shell portability fix for the tagname validity check. From-SVN: r39299 --- ChangeLog | 4 ++++ ltconfig | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 145606f..b7715c4 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 Alexandre Oliva * ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types. diff --git a/ltconfig b/ltconfig index 168923f..889cf44 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 ;; -- cgit v1.1