X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=utils%2Fdbdata.sh;fp=utils%2Fdbdata.sh;h=b0ef438ca311d2d3fc7ed520d5d70ab92a4347bf;hb=d676db43f25d2bda9955e4f8573f7df25d856b5b;hp=f2095def09ad85a525cf9ccd394ef946c02154b4;hpb=567ebfd83f98eb7bc3b26fb638e35a71f49f64ac;p=m17n%2Fm17n-docs.git diff --git a/utils/dbdata.sh b/utils/dbdata.sh index f2095de..b0ef438 100755 --- a/utils/dbdata.sh +++ b/utils/dbdata.sh @@ -3,8 +3,8 @@ IMDOC=`pwd`/utils/imdoc set `ls $1/$2` -FILE=$1 -while shift 1; do +while [ $# -ge 1 ] ; do + FILE=$1 IM=`grep '^(input-method' $FILE` if test -n "$IM"; then if grep -q '^;;;' $FILE; then @@ -50,5 +50,5 @@ while shift 1; do echo sed -n -e '/^;;;/ p' $FILE | sed -e '/^[^;]/ s/$/
/' -e '/^;;;/ s/^;;; *//' fi - FILE=$1 + shift done