|
@@ -4,7 +4,6 @@ if [ "$1" = "" ]
|
|
|
then
|
|
|
pushd . >/dev/null
|
|
|
else
|
|
|
- echo Checking $1 ...
|
|
|
pushd $1 >/dev/null
|
|
|
fi
|
|
|
if [ ! -f series ]
|
|
@@ -17,7 +16,12 @@ for i in *
|
|
|
do
|
|
|
if [ "$i" != "series" -a "$i" != "status" ]
|
|
|
then
|
|
|
- echo $i | grep [^A-Za-z0-9_-i.] && echo illegal character in filename $i && ERRORS=`expr $ERRORS + 1`
|
|
|
+ j=`echo $i | sed -e 's@[A-Za-z0-9_.-]@@g'`
|
|
|
+ if [ "$j" != "" ]
|
|
|
+ then
|
|
|
+ echo illiegal character\(s\) \'$j\' in filename \'$i\'
|
|
|
+ ERRORS=`expr $ERRORS + 1`
|
|
|
+ fi
|
|
|
j=`echo $i | sed -e 's@\.@\\\.@g'`
|
|
|
COUNT=`grep ^$j$ series | wc | sed -e 's@^\s*@@g' -e 's@ .*$@@g'`
|
|
|
if [ "$COUNT" != "1" ]
|