Troubleshooting: draft
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Sat, 13 Dec 2008 15:57:04 +0100
changeset 1 fd135abaac89
parent 0 06dd3b8d90ad
child 2 6ee2a130dc07
Troubleshooting: * See http://de.gentoo-wiki.com/Mbrola * txt2pho needs a config file -> ~/.txt2phorc or /etc/txt2pho committer: Markus Bröker <mbroeker@largo.homelinux.org>
src/Makefile
--- a/src/Makefile
+++ b/src/Makefile
@@ -28,12 +28,20 @@
 		$(CC) -c $(PCFLAGS) $(INCLUDE) $(DEBUG) -o $@ $<; \
 	elif [ -x $(MBROLA) ]; \
 	then \
+		if [ ! -f /etc/txt2pho ]; \
+		then \
+			if [ ! -f ~/.txt2phorc ]; \
+			then \
+				echo "Warning: ~/.txt2phorc or /etc/txt2pho is missing"; \
+			fi; \
+		fi; \
 		$(CC) -c $(MCFLAGS) $(INCLUDE) $(DEBUG) -o $@ $<; \
 	elif [ -x $(FESTIVAL) ]; \
 	then \
 		$(CC) -c $(FCFLAGS) $(INCLUDE) $(DEBUG) -o $@ $<; \
 	else \
 		echo "Cannot find any TTS-System on your Machine"; \
+		exit 1; \
 	fi;
 	@echo "CC $<"