cvs commit: patches/MAINTAINER checkPatch

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Tue Dec 16 17:44:10 PST 2003


tushar      03/12/16 18:44:10

  Modified:    MAINTAINER checkPatch
  Log:
  Updated checkPatch script
  
  Revision  Changes    Path
  1.2       +16 -0     patches/MAINTAINER/checkPatch
  
  Index: checkPatch
  ===================================================================
  RCS file: /home/cvsroot/patches/MAINTAINER/checkPatch,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -u -r1.1 -r1.2
  --- checkPatch	4 Nov 2003 06:18:38 -0000	1.1
  +++ checkPatch	17 Dec 2003 01:44:10 -0000	1.2
  @@ -24,34 +24,50 @@
   	exit 1
   fi
   
  +err_val=0
  +
   SUBMITTED_BY=`echo \`grep "^Submitted By:" $PATCH_FILE | cut -f2 -d:\``
   DATE=`echo \`grep -h "^Date:" $PATCH_FILE | cut -f2 -d:\``
   INITIAL_PACKAGE_VERSION=`echo \`grep -h "^Initial Package Version:" $PATCH_FILE | cut -f2 -d:\``
   ORIGIN=`echo \`grep -h "^Origin:" $PATCH_FILE | cut -f2 -d:\``
   DESCRIPTION=`grep -h "^Description:" $PATCH_FILE`
  +UPSTREAM_STATUS=`echo \`grep "^Upstream Status:" $PATCH_FILE | cut -f2 -d:\``
   if [ -z "$SUBMITTED_BY" ]
   then
   	echo "Annonymous Submitter!"
  +	err_val=1
   else
   	echo "Submitted By: $SUBMITTED_BY"
   fi
   if [ -z "$DATE" ]
   then
   	echo "Date not specified!"
  +	err_val=1
   else
   	echo "Date: $DATE"
   fi
   if [ -z "$INITIAL_PACKAGE_VERSION" ]
   then
   	echo "No Package Version specified!"
  +	err_val=1
   else
   	echo "Initial Package Version: $INITIAL_PACKAGE_VERSION"
   fi
  +if [ -z "$UPSTREAM_STATUS" ]
  +then
  +	echo "WARNING: Upstream status not included!"
  +else
  +	echo "Upstream Status: $UPSTREAM_STATUS"
  +fi
   if [ -z "$ORIGIN" ]
   then
   	echo "Origin of patch not mentioned!"
  +	err_val=1
   fi
   if [ -z "$DESCRIPTION" ]
   then
   	echo "Description missing!"
  +	err_val=1
   fi
  +
  +exit err_val
  
  
  



More information about the patches mailing list