Browse Source

allow + in filenames

Bill Gianopoulos 1 year ago
parent
commit
4f3b3648db
1 changed files with 3 additions and 8 deletions
  1. 3 8
      scripts/check_series.sh

+ 3 - 8
scripts/check_series.sh

@@ -17,7 +17,7 @@ for i in *
 do
 do
   if [ "$i" != "series" -a "$i" != "status" ]
   if [ "$i" != "series" -a "$i" != "status" ]
   then
   then
-    j=`echo $i | sed -e 's@[A-Za-z0-9_.-]@@g'`
+    j=`echo $i | sed -e 's@[A-Za-z0-9_.+-]@@g'`
     if [ "$j" != "" ]
     if [ "$j" != "" ]
     then
     then
       echo illiegal character\(s\) \'$j\' in filename \'$i\'
       echo illiegal character\(s\) \'$j\' in filename \'$i\'
@@ -43,27 +43,22 @@ do
     then
     then
       ERRORS=`expr $ERRORS + 1`
       ERRORS=`expr $ERRORS + 1`
       echo non-ascii characters in $i
       echo non-ascii characters in $i
-      rm -f /tmp/cs$$
-      continue
     fi
     fi
     rm /tmp/cs$$
     rm /tmp/cs$$
     if head -1 $i | grep -v '^# HG changeset patch$' >/dev/null
     if head -1 $i | grep -v '^# HG changeset patch$' >/dev/null
     then
     then
       ERRORS=`expr $ERRORS + 1`
       ERRORS=`expr $ERRORS + 1`
       echo bad hg header in $i
       echo bad hg header in $i
-      continue
     fi
     fi
-    if ! head -2 $i | grep '^# User .*[@<].*[>A-Za-z0-9]$' >/dev/null
+    if ! head -3 $i | grep '^# User .*[@<].*[>A-Za-z0-9]$' >/dev/null
     then
     then
       ERRORS=`expr $ERRORS + 1`
       ERRORS=`expr $ERRORS + 1`
       echo bad hg header in $i
       echo bad hg header in $i
-      continue
     fi
     fi
-    if ! head -3 $i | grep '# Date .*[0-9]$' >/dev/null
+    if ! head -4 $i | grep '# Date .*[0-9]$' >/dev/null
     then
     then
       ERRORS=`expr $ERRORS + 1`
       ERRORS=`expr $ERRORS + 1`
       echo bad hg header in $i
       echo bad hg header in $i
-      continue
     fi
     fi
   fi
   fi
 done
 done