* ltconfig: Shell portability fix for the tagname validity check.
authorMichael Sokolov <msokolov@ivan.Harhan.ORG>
Sat, 27 Jan 2001 19:48:46 +0000 (19:48 +0000)
committerMichael Sokolov <msokolov@gcc.gnu.org>
Sat, 27 Jan 2001 19:48:46 +0000 (19:48 +0000)
From-SVN: r39299

ChangeLog
ltconfig

index 145606f8c487daed207d13741253079571f23fef..b7715c4e95aac475f613048ebf7a16b85db51527 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-27  Michael Sokolov  <msokolov@ivan.Harhan.ORG>,  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * ltconfig: Shell portability fix for the tagname validity check.
+
 2001-01-27  Alexandre Oliva  <aoliva@redhat.com>
 
        * ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types.
index 168923f5ddf2e96bdf7f39e34a932520ae8132ae..889cf44af9c04d381b8fddd3a710baef432706fd 100755 (executable)
--- 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
     ;;