summaryrefslogtreecommitdiffstats
path: root/audio/flite/files/patch-tools-huff_table
diff options
context:
space:
mode:
Diffstat (limited to 'audio/flite/files/patch-tools-huff_table')
-rw-r--r--audio/flite/files/patch-tools-huff_table59
1 files changed, 59 insertions, 0 deletions
diff --git a/audio/flite/files/patch-tools-huff_table b/audio/flite/files/patch-tools-huff_table
new file mode 100644
index 0000000..78a4ceb
--- /dev/null
+++ b/audio/flite/files/patch-tools-huff_table
@@ -0,0 +1,59 @@
+
+$FreeBSD$
+
+--- tools/huff_table.orig
++++ tools/huff_table
+@@ -62,7 +62,7 @@ export LANG
+ ## 0 is reserved, 1 is reserved too
+ ALPHABET_SIZE=254
+
+-if [ $1 == "entries" ]
++if [ $1 = "entries" ]
+ then
+ infile=$2
+ outfile=$3
+@@ -74,7 +74,7 @@ then
+ printf("\n");}' >huff.tmp.corpus
+ fi
+
+-if [ $1 == "phones" ]
++if [ $1 = "phones" ]
+ then
+ infile=$2
+ outfile=$3
+@@ -83,7 +83,7 @@ then
+ sed 's/\\/ /g' >huff.tmp.corpus
+ fi
+
+-if [ $1 == "residual" ]
++if [ $1 = "residual" ]
+ then
+ # This really doesn't work: just some tests to see what's worthwhile
+ infile=$2
+@@ -110,7 +110,7 @@ then
+ sed 's/,//g;s/};//' >huff.tmp.corpus
+ fi
+
+-if [ $1 == "other" ]
++if [ $1 = "other" ]
+ then
+ infile=$2
+ outfile=$3
+@@ -242,7 +242,7 @@ awk 'BEGIN {'"$maptable"'}
+ printf("\n");
+ }' > huff.tmp.corpus.uncompressed
+
+-if [ $1 == "phones" ]
++if [ $1 = "phones" ]
+ then
+ cat huff.tmp.corpus.best |
+ sed 's/+/\\/g' |
+@@ -259,7 +259,7 @@ then
+ mv huff.tmp.corpus.compressed huff.phones.compressed
+ fi
+
+-if [ $1 == "entries" ]
++if [ $1 = "entries" ]
+ then
+ cat huff.tmp.corpus.best |
+ sed 's/+//g' |
OpenPOWER on IntegriCloud