diff options
author | Michael Sokolov <msokolov@ivan.Harhan.ORG> | 2001-01-27 19:34:13 +0000 |
---|---|---|
committer | Michael Sokolov <msokolov@ivan.Harhan.ORG> | 2001-01-27 19:34:13 +0000 |
commit | 05ea0b46f130ca63235d287178c88c92af42b2eb (patch) | |
tree | 887156a864374325a26306eb073756712502b7b3 | |
parent | dcc5e02d01a89e9e2013a12a52d79fc69d48564b (diff) | |
download | cygnal-05ea0b46f130ca63235d287178c88c92af42b2eb.tar.gz cygnal-05ea0b46f130ca63235d287178c88c92af42b2eb.tar.bz2 cygnal-05ea0b46f130ca63235d287178c88c92af42b2eb.zip |
* ltconfig: Shell portability fix for the tagname validity check.
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | ltconfig | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -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. @@ -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 ;; |