Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sokolov <msokolov@ivan.Harhan.ORG>2001-01-27 22:34:13 +0300
committerMichael Sokolov <msokolov@ivan.Harhan.ORG>2001-01-27 22:34:13 +0300
commit05ea0b46f130ca63235d287178c88c92af42b2eb (patch)
tree887156a864374325a26306eb073756712502b7b3 /ltconfig
parentdcc5e02d01a89e9e2013a12a52d79fc69d48564b (diff)
* ltconfig: Shell portability fix for the tagname validity check.
Diffstat (limited to 'ltconfig')
-rwxr-xr-xltconfig6
1 files changed, 4 insertions, 2 deletions
diff --git a/ltconfig b/ltconfig
index fb0bf8b8b..7130a6f57 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
;;