Browse Source

Update check_series,sh to validate first line of patches

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

+ 5 - 0
scripts/check_series.sh

@@ -30,6 +30,11 @@ do
       ERRORS=`expr $ERRORS + 1`
       echo $i appears $COUNT times in series
     fi
+    if head -1 $i | grep -v '# HG changeset patch' >/dev/null
+    then
+      ERRORS=`expr $ERRORS + 1`
+      echo bad hg header in $i
+    fi
   fi
 done
 for i in `cat series`