]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in: Shell portability fix for the tagname validity check.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Sat, 27 Jan 2001 19:03:30 +0000 (19:03 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 27 Jan 2001 19:03:30 +0000 (19:03 +0000)
ChangeLog
ltconfig.in

index e7012a3b4b5bc7da602917eb2137da58fe7c7260..3f59e144c8c6a5d77b8dec30053c07570611ddac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-25  Michael Sokolov  <msokolov@ivan.Harhan.ORG>,  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * ltconfig.in: Shell portability fix for the tagname validity check.
+
 2001-01-25  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
 
        * ltcf-cxx.sh: Use parentheses around eval $ac_compile.
index c8c6cb3c7a1a77a43860a79d8f803b6ef6814d08..189e3345e8686824c7344c636a51080522673d1b 100755 (executable)
@@ -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
     ;;