Browse Source

add checks for User and Date lines

Bill Gianopoulos 3 years ago
parent
commit
aad0f2ef8b
1 changed files with 13 additions and 0 deletions
  1. 13 0
      scripts/check_series.sh

+ 13 - 0
scripts/check_series.sh

@@ -34,6 +34,19 @@ do
     then
       ERRORS=`expr $ERRORS + 1`
       echo bad hg header in $i
+      continue
+    fi
+    if ! head -2 $i | grep '^# User .*[@<]' >/dev/null
+    then
+      ERRORS=`expr $ERRORS + 1`
+      echo bad hg header in $i
+      continue
+    fi
+    if ! head -3 $i | grep '# Date ' >/dev/null
+    then
+      ERRORS=`expr $ERRORS + 1`
+      echo bad hg header in $i
+      continue
     fi
   fi
 done