freebsd-ports/audio/flite/files/patch-tools-huff_table
Pav Lucistnik 4a25988c2e - Update to 1.3
PR:		ports/121609
Submitted by:	Richard Neese <r.neese@gmail.com>
Approved by:	maintainer timeout (sobomax; 20 days)
2008-03-31 13:23:57 +00:00

59 lines
1.1 KiB
Text

$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' |