* ltconfig: Shell portability fix for the tagname validity check.
authorMichael Sokolov <msokolov@ivan.harhan.org>
Sat, 27 Jan 2001 19:34:13 +0000 (19:34 +0000)
committerMichael Sokolov <msokolov@ivan.harhan.org>
Sat, 27 Jan 2001 19:34:13 +0000 (19:34 +0000)
ChangeLog
ltconfig

index a31dca7dc608548575f005d19f2a4e48e767f6d9..ea01fcfe6c3bbc86747268c5064b514a36ab5186 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  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
 
        * ltcf-cxx.sh: Use parentheses around eval $ac_compile.
index fb0bf8b8b181b785402a541da2b61c08c77bb0e7..7130a6f570baa08ef81f5ab89e327e262533da99 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
     ;;