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:
Jonah Beckford 2003-03-22 11:18:27 +00:00
commit a2cfa36c80

View file

@ -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/^.//'`