#!/bin/sh

# Festival shared script

extend() {
	var="$1"
	extra="$2"
	eval "val=\$$var"
	
	if [ -n "$val" ]
		then
		val="$extra:$val"
	else
		val="$extra"
	fi
	eval "$var='$val'"
	eval "export $var"
	}

extend LD_LIBRARY_PATH "'/usr/share/speech_tools'/lib:"

exec /usr/bin/festival.bin "$@"

exit 0

