aboutsummaryrefslogtreecommitdiff
path: root/ltconfig
diff options
context:
space:
mode:
authorMichael Sokolov <msokolov@ivan.Harhan.ORG>2001-01-27 19:48:46 +0000
committerMichael Sokolov <msokolov@gcc.gnu.org>2001-01-27 19:48:46 +0000
commit92769744aed0bae7bcfb6a1621aac62484922e62 (patch)
tree8fd1e43c0dba4576700fd7c422ec4ecb21474b03 /ltconfig
parent65422ec58bd8ac89c27c91125cdbd421fe1e1301 (diff)
downloadgcc-92769744aed0bae7bcfb6a1621aac62484922e62.zip
gcc-92769744aed0bae7bcfb6a1621aac62484922e62.tar.gz
gcc-92769744aed0bae7bcfb6a1621aac62484922e62.tar.bz2
* ltconfig: Shell portability fix for the tagname validity check.
From-SVN: r39299
Diffstat (limited to 'ltconfig')
-rwxr-xr-xltconfig6
1 files changed, 4 insertions, 2 deletions
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
;;