Solaris /usr/bin/tr does not accept ranges in form "a-z". So put in
explicit abc...xyz range. Fixes "make check-gifplot" and whatever else might use 'Tools/capitalize'. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4615 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6b4f4c9d21
commit
a2cfa36c80
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# usage: capitalize word
|
||||
# write word to stdout w/ first character upcased
|
||||
first_char=`echo $1 | sed 's/^\(.\).*/\1/' | tr a-z A-Z`
|
||||
first_char=`echo $1 | sed 's/^\(.\).*/\1/' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
|
||||
echo ${first_char}`echo $1 | sed 's/^.//'`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue