* Do not use non-posix extensions of 'tr'

This commit is contained in:
pancake 2010-03-04 22:01:15 +01:00
parent f84a95fc92
commit f9675b000c
1 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ generate_configh () {
if [ ! "$oldlib" = "$lib" ]; then if [ ! "$oldlib" = "$lib" ]; then
[ -n "$oldlib" ] && echo " 0" [ -n "$oldlib" ] && echo " 0"
oldlib=$lib oldlib=$lib
uclib=$(echo $lib | tr '[:lower:]' '[:upper:]') uclib=$(echo $lib | tr '[a-z]' '[a-Z]')
echo echo
echo "#define R_${uclib}_STATIC_PLUGINS \\" echo "#define R_${uclib}_STATIC_PLUGINS \\"
plugins="${plugins} __${uclib}" plugins="${plugins} __${uclib}"
@ -63,7 +63,7 @@ generate_configh () {
plg=$(echo $a | cut -d . -f 2) # plugin name plg=$(echo $a | cut -d . -f 2) # plugin name
if [ ! "$oldlib" = "$lib" ]; then if [ ! "$oldlib" = "$lib" ]; then
oldlib=$lib oldlib=$lib
uclib=$(echo $lib | tr '[:lower:]' '[:upper:]') uclib=$(echo $lib | tr '[a-z]' '[A-Z]')
if [ -z "`echo ${plugins} | grep __${uclib}`" ]; then if [ -z "`echo ${plugins} | grep __${uclib}`" ]; then
plugins="${plugins} __${uclib}" plugins="${plugins} __${uclib}"
echo echo
@ -82,7 +82,7 @@ generate_configmk () {
if [ ! "$oldlib" = "$lib" ]; then if [ ! "$oldlib" = "$lib" ]; then
[ -n "$oldlib" ] && printf "\n" [ -n "$oldlib" ] && printf "\n"
oldlib=$lib oldlib=$lib
uclib=$(echo $lib | tr '[:lower:]' '[:upper:]') uclib=$(echo $lib | tr '[a-z]' '[A-Z]')
printf "STATIC_${uclib}_PLUGINS= " printf "STATIC_${uclib}_PLUGINS= "
plugins="${plugins} __${uclib}" plugins="${plugins} __${uclib}"
fi fi
@ -94,7 +94,7 @@ generate_configmk () {
# fill the holes with love # fill the holes with love
for a in ${SHARED} ; do for a in ${SHARED} ; do
lib=$(echo $a | cut -d . -f 1) # library lib=$(echo $a | cut -d . -f 1) # library
uclib=$(echo $lib | tr '[:lower:]' '[:upper:]') uclib=$(echo $lib | tr '[a-z]' '[A-Z]')
if [ -z "`echo ${plugins} | grep __${uclib}`" ]; then if [ -z "`echo ${plugins} | grep __${uclib}`" ]; then
plugins="${plugins} __${uclib}" plugins="${plugins} __${uclib}"
echo "STATIC_${uclib}_PLUGINS=" echo "STATIC_${uclib}_PLUGINS="