Blame SOURCES/festival-2.5.0-filesystem-standard.patch

23b78b
diff -u --recursive festival-vanilla/examples/benchmark festival/examples/benchmark
23b78b
--- festival-vanilla/examples/benchmark	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/benchmark	2018-09-06 20:37:22.855868107 -0400
23b78b
@@ -1,6 +1,7 @@
23b78b
 #!/bin/sh
23b78b
 
23b78b
-default_libdir="/projects/festival/lib"
23b78b
+default_libdir="/usr/share/festival"
23b78b
+default_datadir="/usr/share/festival"
23b78b
 
23b78b
 while true
23b78b
 	do
23b78b
@@ -11,13 +12,17 @@
23b78b
 	-l ) libdir="$2"
23b78b
 		shift 2
23b78b
 		;;
23b78b
+	-d ) datadir="$2"
23b78b
+		shift 2
23b78b
+		;;
23b78b
+	-- ) shift; break ;;
23b78b
 	* ) break;;
23b78b
 	esac
23b78b
 done
23b78b
 
23b78b
-text=${1-"$HOME/projects/festival/examples/benchmark.text"}
23b78b
+text=${1-"/usr/share/doc/festival/examples/benchmark.text"}
23b78b
 
23b78b
-for i in . src/main ../src/main $HOME/projects/festival/src/main /cstr/bin
23b78b
+for i in /usr/bin . src/main ../src/main $HOME/projects/festival/src/main /cstr/bin
23b78b
 	do
23b78b
 	if [ -n "$festival" ]
23b78b
 		then
23b78b
@@ -39,7 +44,15 @@
23b78b
 	then
23b78b
 	case $festival in 
23b78b
 	*main/festival )	libdir=`dirname $festival`/../../lib;;
23b78b
-	* ) libdir=$default_libdir;;
23b78b
+	* ) libdir=$default_libdir;
23b78b
+	esac
23b78b
+fi
23b78b
+
23b78b
+if [ -z "$datadir" ]
23b78b
+	then
23b78b
+	case $festival in 
23b78b
+	*main/festival )   datadir=`dirname $festival`/../../share;;
23b78b
+	* ) datadir=$default_datadir;;
23b78b
 	esac
23b78b
 fi
23b78b
 
23b78b
@@ -54,10 +67,11 @@
23b78b
 cat > $script <<__END__
23b78b
 
23b78b
 (set! libdir "$libdir/")
23b78b
-(set! lexdir "$default_libdir/dicts/")
23b78b
-(set! voiced_dir "$default_libdir/voices/")
23b78b
+(set! datadir "$datadir/")
23b78b
+(set! lexdir "$default_datadir/dicts/")
23b78b
+(set! voiced_dir "$default_datadir/voices/")
23b78b
 
23b78b
-(load (string-append libdir "init.scm"))
23b78b
+(load (string-append datadir "init.scm"))
23b78b
 (if (probe_file (format nil "%s/.festivalrc" (getenv "HOME")))
23b78b
     (load (format nil "%s/.festivalrc" (getenv "HOME"))))
23b78b
 
23b78b
diff -u --recursive festival-vanilla/examples/benchmark.text festival/examples/benchmark.text
23b78b
--- festival-vanilla/examples/benchmark.text	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/benchmark.text	2018-09-06 20:37:22.855868107 -0400
23b78b
@@ -32,8 +32,13 @@
23b78b
 
23b78b
      --libdir PATH
23b78b
 	     Specify alternate to default library directory (used
23b78b
-	     in	 initializing  the  variable  load-path,  and for
23b78b
-	     loading most intinialisation files)
23b78b
+	     for architecture-specific libraries and programs)
23b78b
+
23b78b
+     --datadir PATH
23b78b
+	     Specify alternate to default shared-data directory (used
23b78b
+	     in	 initializing the  variable  load-path,  and for
23b78b
+	     loading most initialisation files). Typically, the voice and
23b78b
+		 dictionary files reside here.
23b78b
 
23b78b
      -b	or --batch
23b78b
 	     Run in batch mode.	 In batch mode no input	 is  read
23b78b
diff -u --recursive festival-vanilla/examples/dumpfeats.sh festival/examples/dumpfeats.sh
23b78b
--- festival-vanilla/examples/dumpfeats.sh	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/dumpfeats.sh	2018-09-06 20:37:22.855868107 -0400
23b78b
@@ -39,7 +39,7 @@
23b78b
 
23b78b
 ;;; Because this is a --script type file it has to explicitly
23b78b
 ;;; load the initfiles: init.scm and user's .festivalrc
23b78b
-(load (path-append libdir "init.scm"))
23b78b
+(load (path-append datadir "init.scm"))
23b78b
 
23b78b
 (define (dumpfeats_help)
23b78b
   (format t "%s\n"
23b78b
diff -u --recursive festival-vanilla/examples/durmeanstd.sh festival/examples/durmeanstd.sh
23b78b
--- festival-vanilla/examples/durmeanstd.sh	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/durmeanstd.sh	2018-09-06 20:37:22.856868112 -0400
23b78b
@@ -40,7 +40,7 @@
23b78b
 
23b78b
 ;;; Because this is a --script type file it has to explicitly
23b78b
 ;;; load the initfiles: init.scm and user's .festivalrc
23b78b
-(load (path-append libdir "init.scm"))
23b78b
+(load (path-append datadir "init.scm"))
23b78b
 
23b78b
 (define (durmeanstd_help)
23b78b
   (format t "%s\n"
23b78b
diff -u --recursive festival-vanilla/examples/latest.sh festival/examples/latest.sh
23b78b
--- festival-vanilla/examples/latest.sh	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/latest.sh	2018-09-06 20:37:22.854868102 -0400
23b78b
@@ -50,7 +50,7 @@
23b78b
 
23b78b
 ;;; Because this is a --script type file I has to explicitly
23b78b
 ;;; load the initfiles: init.scm and user's .festivalrc
23b78b
-(load (path-append libdir "init.scm"))
23b78b
+(load (path-append datadir "init.scm"))
23b78b
 
23b78b
 (audio_mode 'async)  ;; play waves while continuing synthesis
23b78b
 
23b78b
diff -u --recursive festival-vanilla/examples/Makefile festival/examples/Makefile
23b78b
--- festival-vanilla/examples/Makefile	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/Makefile	2018-09-06 20:37:22.860868131 -0400
23b78b
@@ -54,8 +54,9 @@
23b78b
 
23b78b
 $(ALL) : % : %.sh
23b78b
 	rm -f $@
23b78b
-	@echo "#!/bin/sh" >$@
23b78b
-	@echo "\"true\" ; exec "$(FESTIVAL_HOME)/bin/festival --script '$$0 $$*' >>$@
23b78b
+	@echo "#!/usr/bin/festival --script" >$@
23b78b
+#	@echo "#!/bin/sh" >$@
23b78b
+#	@echo "\"true\" ; exec "/usr/bin/festival --script '$$0 $$*' >>$@
23b78b
 	cat $< >>$@
23b78b
 	chmod +x $@
23b78b
 
23b78b
diff -u --recursive festival-vanilla/examples/make_utts.sh festival/examples/make_utts.sh
23b78b
--- festival-vanilla/examples/make_utts.sh	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/make_utts.sh	2018-09-06 20:37:22.854868102 -0400
23b78b
@@ -44,7 +44,7 @@
23b78b
 ;;; Because this is a --script type file it has to explicitly
23b78b
 ;;; load the initfiles: init.scm and user's .festivalrc
23b78b
 (if (not (symbol-bound? 'caar))
23b78b
-    (load (path-append libdir "init.scm")))
23b78b
+    (load (path-append datadir "init.scm")))
23b78b
 
23b78b
 ;;;  Some parts are potentially editable
23b78b
 (defvar basic_relations '((Phrase segmental ())
23b78b
diff -u --recursive festival-vanilla/examples/saytime.sh festival/examples/saytime.sh
23b78b
--- festival-vanilla/examples/saytime.sh	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/saytime.sh	2018-09-06 20:37:22.856868112 -0400
23b78b
@@ -44,7 +44,7 @@
23b78b
 
23b78b
 ;;; Because this is a --script type file I has to explicitly
23b78b
 ;;; load the initfiles: init.scm and user's .festivalrc
23b78b
-(load (path-append libdir "init.scm"))
23b78b
+(load (path-append datadir "init.scm"))
23b78b
 
23b78b
 (define (get-the-time)
23b78b
 "Returns a list of hour and minute and second, for later processing"
23b78b
diff -u --recursive festival-vanilla/examples/scfg_parse_text.sh festival/examples/scfg_parse_text.sh
23b78b
--- festival-vanilla/examples/scfg_parse_text.sh	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/scfg_parse_text.sh	2018-09-06 20:37:22.856868112 -0400
23b78b
@@ -45,7 +45,7 @@
23b78b
 
23b78b
 ;;; Because this is a --script type file I has to explicitly
23b78b
 ;;; load the initfiles: init.scm and user's .festivalrc
23b78b
-(load (path-append libdir "init.scm"))
23b78b
+(load (path-append datadir "init.scm"))
23b78b
 
23b78b
 (require 'scfg)
23b78b
 
23b78b
@@ -66,7 +66,7 @@
23b78b
 (gc-status nil)
23b78b
 
23b78b
 ;;; Default argument values
23b78b
-(defvar grammarfile (path-append libdir "scfg_wsj_wp20.gram"))
23b78b
+(defvar grammarfile (path-append datadir "scfg_wsj_wp20.gram"))
23b78b
 (defvar outfile "-")
23b78b
 (defvar outfd t)
23b78b
 (defvar parse_type 'brackets_only)
23b78b
diff -u --recursive festival-vanilla/examples/text2pos.sh festival/examples/text2pos.sh
23b78b
--- festival-vanilla/examples/text2pos.sh	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/text2pos.sh	2018-09-06 20:37:22.856868112 -0400
23b78b
@@ -50,7 +50,7 @@
23b78b
 
23b78b
 ;;; Because this is a --script type file I has to explicitly
23b78b
 ;;; load the initfiles: init.scm and user's .festivalrc
23b78b
-(load (path-append libdir "init.scm"))
23b78b
+(load (path-append datadir "init.scm"))
23b78b
 
23b78b
 (define (find-pos utt)
23b78b
 "Main function for processing TTS utterances.  Predicts POS and
23b78b
diff -u --recursive festival-vanilla/examples/text2wave.sh festival/examples/text2wave.sh
23b78b
--- festival-vanilla/examples/text2wave.sh	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/examples/text2wave.sh	2018-09-06 20:37:22.857868117 -0400
23b78b
@@ -40,7 +40,7 @@
23b78b
 
23b78b
 ;;; Because this is a --script type file I has to explicitly
23b78b
 ;;; load the initfiles: init.scm and user's .festivalrc
23b78b
-(load (path-append libdir "init.scm"))
23b78b
+(load (path-append datadir "init.scm"))
23b78b
 
23b78b
 ;;; Process command line arguments
23b78b
 (define (text2wave_help)
23b78b
diff -u --recursive festival-vanilla/lib/festival.scm festival/lib/festival.scm
23b78b
--- festival-vanilla/lib/festival.scm	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/lib/festival.scm	2018-09-06 20:37:22.858868122 -0400
23b78b
@@ -552,13 +552,13 @@
23b78b
 (define (intro)
23b78b
 "(intro)
23b78b
  Synthesize an introduction to the Festival Speech Synthesis System."
23b78b
-  (tts (path-append libdir "../examples/intro.text") nil))
23b78b
+  (tts (path-append datadir "/usr/share/doc/festival/examples/intro.text") nil))
23b78b
 
23b78b
 (define (intro-spanish)
23b78b
 "(intro-spanish)
23b78b
  Synthesize an introduction to the Festival Speech Synthesis System
23b78b
  in spanish.  Spanish voice must already be selected for this."
23b78b
-  (tts (path-append libdir "../examples/spintro.text") nil))
23b78b
+  (tts (path-append datadir "/usr/share/doc/festival/examples/spintro.text") nil))
23b78b
 
23b78b
 (define (na_play FILENAME)
23b78b
 "(play_wave FILENAME)
23b78b
diff -u --recursive festival-vanilla/lib/init.scm festival/lib/init.scm
23b78b
--- festival-vanilla/lib/init.scm	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/lib/init.scm	2018-09-06 20:37:22.852868092 -0400
23b78b
@@ -36,7 +36,7 @@
23b78b
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
23b78b
 
23b78b
 ;;;  Basic siod library (need this before load_library or require works)
23b78b
-(load (path-append libdir "siod.scm"))
23b78b
+(load (path-append datadir "siod.scm"))
23b78b
 
23b78b
 (defvar home-directory (or (getenv "HOME") "/")
23b78b
   "home-directory
23b78b
diff -u --recursive festival-vanilla/lib/lexicons.scm festival/lib/lexicons.scm
23b78b
--- festival-vanilla/lib/lexicons.scm	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/lib/lexicons.scm	2018-09-06 20:37:22.858868122 -0400
23b78b
@@ -42,10 +42,10 @@
23b78b
 ;;;  you should set lexdir in sitevars.scm
23b78b
 
23b78b
 (defvar lexdir 
23b78b
-  (if (probe_file (path-append libdir "dicts"))
23b78b
-      (path-append libdir "dicts/")
23b78b
+  (if (probe_file (path-append datadir "dicts"))
23b78b
+      (path-append datadir "dicts/")
23b78b
       ;; else we'll guess we're in the CSTR filespace
23b78b
-      (path-as-directory "/projects/festival/lib/dicts/"))
23b78b
+      (path-as-directory "/usr/share/festival/dicts/"))
23b78b
   "lexdir
23b78b
   The directory where the lexicon(s) are, by default.")
23b78b
 
23b78b
diff -u --recursive festival-vanilla/lib/phrase.scm festival/lib/phrase.scm
23b78b
--- festival-vanilla/lib/phrase.scm	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/lib/phrase.scm	2018-09-06 20:37:22.857868117 -0400
23b78b
@@ -93,7 +93,7 @@
23b78b
 
23b78b
 (require 'pos)   ;; for part of speech map
23b78b
 
23b78b
-(defvar pbreak_ngram_dir libdir
23b78b
+(defvar pbreak_ngram_dir datadir
23b78b
   "pbreak_ngram_dir
23b78b
   The directory containing the ngram models for predicting phrase
23b78b
   breaks.  By default this is the standard library directory.")
23b78b
diff -u --recursive festival-vanilla/lib/soleml-mode.scm festival/lib/soleml-mode.scm
23b78b
--- festival-vanilla/lib/soleml-mode.scm	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/lib/soleml-mode.scm	2018-09-06 20:37:22.857868117 -0400
23b78b
@@ -330,7 +330,7 @@
23b78b
        (list 'exit_func soleml_exit_func)
23b78b
        '(analysis_type xxml)
23b78b
        (list 'filter 
23b78b
-	     (format nil "%s -D %s " sgml_parse_progname libdir))))
23b78b
+	     (format nil "%s -D %s " sgml_parse_progname datadir))))
23b78b
     tts_text_modes))
23b78b
 
23b78b
 (provide 'soleml-mode)
23b78b
diff -u --recursive festival-vanilla/lib/voices.scm festival/lib/voices.scm
23b78b
--- festival-vanilla/lib/voices.scm	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/lib/voices.scm	2018-09-06 20:37:22.853868097 -0400
23b78b
@@ -42,7 +42,7 @@
23b78b
 ;; The path to search for voices is created from the load-path with
23b78b
 ;; an extra list of directories appended.
23b78b
 
23b78b
-(defvar system-voice-path '( )
23b78b
+(defvar system-voice-path '("/usr/share/festival/voices/")
23b78b
   "system-voice-path
23b78b
    Additional directory not near the load path where voices can be
23b78b
    found, this can be redefined in lib/sitevars.scm if desired.")
23b78b
diff -u --recursive festival-vanilla/src/arch/festival/audspio.cc festival/src/arch/festival/audspio.cc
23b78b
--- festival-vanilla/src/arch/festival/audspio.cc	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/src/arch/festival/audspio.cc	2018-09-06 20:37:22.859868126 -0400
23b78b
@@ -108,7 +108,7 @@
23b78b
 	{
23b78b
 	    audio = ft_get_param("Audio_Method");
23b78b
 	    command = ft_get_param("Audio_Command");
23b78b
-	    audfds = pipe_open("audsp");
23b78b
+	    audfds = pipe_open("/usr/libexec/festival/audsp");
23b78b
 	    if (audio != NIL)
23b78b
 		audsp_send(EST_String("method ")+get_c_string(audio));
23b78b
 	    if (command != NIL)
23b78b
diff -u --recursive festival-vanilla/src/arch/festival/festival.cc festival/src/arch/festival/festival.cc
23b78b
--- festival-vanilla/src/arch/festival/festival.cc	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/src/arch/festival/festival.cc	2018-09-06 20:37:22.859868126 -0400
23b78b
@@ -60,6 +60,9 @@
23b78b
 #define STRINGIZE(S) _S_S_S(S)
23b78b
 
23b78b
 const char *festival_version =  STRINGIZE(FTVERSION) ":" STRINGIZE(FTSTATE) " " STRINGIZE(FTDATE);
23b78b
+const char *festival_libdir = "/usr/share/festival";
23b78b
+const char *festival_datadir = "/usr/share/festival";
23b78b
+const char *festival_sysconfdir = "/etc";
23b78b
 
23b78b
 // Allow the path to be passed in without quotes because Windoze command line
23b78b
 // is stupid
23b78b
@@ -79,7 +82,6 @@
23b78b
 #define FTOSTYPE ""
23b78b
 #endif
23b78b
 
23b78b
-const char *festival_libdir = FTLIBDIR;
23b78b
 ostream *cdebug;
23b78b
 static int festival_server_port = 1314;
23b78b
 static EST_StrList sub_copyrights;
23b78b
@@ -308,7 +310,7 @@
23b78b
     EST_String userinitfile, home_str, initfile;
23b78b
 
23b78b
     // Load library init first
23b78b
-    initfile = (EST_String)EST_Pathname(festival_libdir).as_directory() + 
23b78b
+    initfile = (EST_String)EST_Pathname(festival_datadir).as_directory() +
23b78b
 	"init.scm";
23b78b
     if (access((const char *)initfile,R_OK) == 0)
23b78b
 	vload(initfile,FALSE);
23b78b
@@ -324,6 +326,8 @@
23b78b
     int major,minor,subminor;
23b78b
     
23b78b
     siod_set_lval("libdir",strintern(festival_libdir));
23b78b
+    siod_set_lval("datadir",strintern(festival_datadir));
23b78b
+    siod_set_lval("sysconfdir",strintern(festival_sysconfdir));
23b78b
     if (!streq(FTOSTYPE,""))
23b78b
 	siod_set_lval("*ostype*",cintern(FTOSTYPE));
23b78b
     siod_set_lval("festival_version",
23b78b
@@ -357,6 +361,7 @@
23b78b
     if (mplayer_supported)
23b78b
 	proclaim_module("mplayeraudio");
23b78b
     
23b78b
+#if 0 /* /usr/lib/festival/etc/machine -- ??? */
23b78b
     // Add etc-dir path and machine specific directory etc/$OSTYPE
23b78b
     char *etcdir = walloc(char,strlen(festival_libdir)+strlen("etc/")+
23b78b
 			  strlen(FTOSTYPE)+3);
23b78b
@@ -377,6 +382,7 @@
23b78b
     
23b78b
     wfree(etcdir);
23b78b
     wfree(etcdircommon);
23b78b
+#endif
23b78b
     return;
23b78b
 }
23b78b
 
23b78b
Only in festival/src/arch/festival: festival.cc.orig
23b78b
diff -u --recursive festival-vanilla/src/arch/festival/Makefile festival/src/arch/festival/Makefile
23b78b
--- festival-vanilla/src/arch/festival/Makefile	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/src/arch/festival/Makefile	2018-09-06 20:37:22.858868122 -0400
23b78b
@@ -62,6 +62,6 @@
23b78b
 LOCAL_INCLUDES += $(FESTIVAL_INCLUDES)
23b78b
 
23b78b
 festival.o: festival.cc
23b78b
-	$(CXX_COMMAND_TEMPLATES) -DFTNAME='$(PROJECT_NAME)' -DFTLIBDIRC='$(FTLIBDIR)' -DFTVERSION='$(PROJECT_VERSION)' -DFTSTATE='$(PROJECT_STATE)'  -DFTDATE='$(PROJECT_DATE)' -DFTOSTYPE=\"$(SYSTEM_TYPE)\" festival.cc
23b78b
+	$(CXX_COMMAND_TEMPLATES) -DFTNAME='$(PROJECT_NAME)' -DFTVERSION='$(PROJECT_VERSION)' -DFTSTATE='$(PROJECT_STATE)'  -DFTDATE='$(PROJECT_DATE)' -DFTOSTYPEC='$(SYSTEM_TYPE)' festival.cc
23b78b
 
23b78b
 
23b78b
diff -u --recursive festival-vanilla/src/include/festival.h festival/src/include/festival.h
23b78b
--- festival-vanilla/src/include/festival.h	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/src/include/festival.h	2018-09-06 20:37:22.854868102 -0400
23b78b
@@ -138,6 +138,7 @@
23b78b
 void add_item_features(EST_Item *s,LISP features);
23b78b
 
23b78b
 extern const char *festival_libdir;
23b78b
+extern const char *festival_datadir;
23b78b
 
23b78b
 //  Module specific LISP/etc definitions
23b78b
 void festival_init_modules(void);
23b78b
diff -u --recursive festival-vanilla/src/main/festival_main.cc festival/src/main/festival_main.cc
23b78b
--- festival-vanilla/src/main/festival_main.cc	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/src/main/festival_main.cc	2018-09-06 20:37:22.853868097 -0400
23b78b
@@ -88,6 +88,8 @@
23b78b
         "In evaluation mode \"filenames\" starting with ( are evaluated inline\n"+
23b78b
 	"Festival Speech Synthesis System: "+ festival_version +"\n"+
23b78b
 	"-q            Load no default setup files\n"+
23b78b
+	"--datadir <string>\n"+
23b78b
+	"              Set data directory pathname\n"+
23b78b
 	"--libdir <string>\n"+
23b78b
         "              Set library directory pathname\n"+
23b78b
         "-b            Run in batch mode (no interaction)\n"+
23b78b
@@ -127,6 +129,12 @@
23b78b
 	festival_libdir = wstrdup(al.val("--libdir"));
23b78b
     else if (getenv("FESTLIBDIR") != 0)
23b78b
 	festival_libdir = getenv("FESTLIBDIR");
23b78b
+
23b78b
+    if (al.present("--datadir"))
23b78b
+	festival_datadir = wstrdup(al.val("--datadir"));
23b78b
+    else if (getenv("FESTDATADIR") != 0)
23b78b
+	festival_datadir = getenv("FESTDATADIR");
23b78b
+
23b78b
     if (al.present("--heap"))
23b78b
 	heap_size = al.ival("--heap");
23b78b
 
23b78b
diff -u --recursive festival-vanilla/testsuite/data/modes.scm festival/testsuite/data/modes.scm
23b78b
--- festival-vanilla/testsuite/data/modes.scm	2017-09-04 11:54:08.000000000 -0400
23b78b
+++ festival/testsuite/data/modes.scm	2018-09-06 20:37:22.853868097 -0400
23b78b
@@ -42,13 +42,13 @@
23b78b
 
23b78b
 (format t "\n\nSABLE mode\n")
23b78b
 (unwind-protect
23b78b
- (tts (string-append libdir "/../examples/example2.sable") nil))
23b78b
+ (tts "/usr/share/doc/festival/examples/example2.sable" 'sable))
23b78b
 (format t "\n\nOGI's mark up mode\n")
23b78b
 (unwind-protect 
23b78b
- (tts (string-append libdir "/../examples/ex1.ogi") 'ogimarkup))
23b78b
+ (tts "/usr/share/doc/festival/examples/ex1.ogi" 'ogimarkup))
23b78b
 (format t "\n\nAn email mode\n")
23b78b
 (unwind-protect
23b78b
- (tts (string-append libdir "/../examples/ex1.email") nil))
23b78b
+ (tts "/usr/share/doc/festival/examples/ex1.email" nil))
23b78b
 
23b78b
 (voice_kal_diphone)
23b78b
 (format t "\n\nA singing mode\n")