blob: 67c047a9b7f3b028387e60eb5ec326a115044777 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-ab,v 1.2 2011/09/01 11:46:07 obache Exp $
* portability fix
--- tables/wubi-haifeng/convertTable.sh.orig 2010-12-02 23:22:54.000000000 +0000
+++ tables/wubi-haifeng/convertTable.sh
@@ -18,10 +18,10 @@ function append_freq(){
ch=`echo $data | $AWK '{print $3}'`
freqOrig=`echo $data | $AWK '{print $1}'`
# echo "lastSeq=$lastSeq seq=$seq ch=$ch freqOrig=$freqOrig"
- if [ "$freqOrig" == "" ];then
+ if [ "$freqOrig" = "" ];then
freqOrig=0
fi
- if [ "$seq" == "$lastSeq" ];then
+ if [ "$seq" = "$lastSeq" ];then
if [ $lastFreq -le $freqOrig ];then
freq=$((lastFreq-1))
else
@@ -39,7 +39,7 @@ function append_freq(){
fi
count=$((count+1))
countMod=$((count % 1000))
- if [ "$countMod" == "0" ];then
+ if [ "$countMod" = "0" ];then
echo -e "$count\telements processed" > /dev/stderr
fi
done
@@ -48,7 +48,7 @@ function append_freq(){
function parse(){
baseFreq=100;
- if [ "$1" == "-b" ];then
+ if [ "$1" = "-b" ];then
baseFreq=$2
shift 2
fi
|