summaryrefslogtreecommitdiff
path: root/ltconfig
diff options
context:
space:
mode:
authormsokolov <msokolov@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-27 19:48:46 +0000
committermsokolov <msokolov@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-27 19:48:46 +0000
commit441075de52963b5454ea6f845b2865e43bf17632 (patch)
tree8fd1e43c0dba4576700fd7c422ec4ecb21474b03 /ltconfig
parent4ec5c5e8b9e7cb340f30a6b55dc9cead72a2ae95 (diff)
downloadgcc-441075de52963b5454ea6f845b2865e43bf17632.tar.gz
* ltconfig: Shell portability fix for the tagname validity check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39299 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltconfig')
-rwxr-xr-xltconfig6
1 files changed, 4 insertions, 2 deletions
diff --git a/ltconfig b/ltconfig
index 168923f5ddf..889cf44af9c 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
;;