Print this page
12166 resync smatch to 0.6.1-rc1-il-3

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_scripts/kpatch.sh
          +++ new/usr/src/tools/smatch/src/smatch_scripts/kpatch.sh
↓ open down ↓ 91 lines elided ↑ open up ↑
  92   92      echo "# $sm_err" >> $MSG_FILE
  93   93  fi
  94   94  git log -10 --oneline $fullname | sed -e 's/^/# /' >> $MSG_FILE
  95   95  vim $MSG_FILE
  96   96  
  97   97  grep -v '^#' $MSG_FILE > $MSG_FILE.1
  98   98  mv $MSG_FILE.1 $MSG_FILE
  99   99  
 100  100  git commit $AMEND -F $MSG_FILE
 101  101  
 102      -to_addr=$(./scripts/get_maintainer.pl -f --noroles --norolestats $fullname | head -n 1)
 103      -cc_addr=$(./scripts/get_maintainer.pl -f --noroles --norolestats $fullname | tail -n +2 | \
      102 +git format-patch HEAD^ --stdout >> $MSG_FILE
      103 +
      104 +to_addr=$(./scripts/get_maintainer.pl --noroles --norolestats $MSG_FILE | head -n 1)
      105 +cc_addr=$(./scripts/get_maintainer.pl --noroles --norolestats $MSG_FILE | tail -n +2 | \
 104  106      perl -ne 's/\n$/, /; print')
 105  107  cc_addr="$cc_addr, kernel-janitors@vger.kernel.org"
 106  108  
 107  109  echo -n "To:  "  > $MAIL_FILE
 108  110  echo "$to_addr" >> $MAIL_FILE
 109  111  echo -n "CC:  " >> $MAIL_FILE
 110  112  echo "$cc_addr" >> $MAIL_FILE
 111  113  echo "X-Mailer: git-send-email haha only kidding" >> $MAIL_FILE
 112  114  
 113  115  git format-patch HEAD^ --stdout >> $MAIL_FILE
 114  116  
 115  117  ./scripts/checkpatch.pl $MAIL_FILE || continue_yn
 116  118  
 117  119  echo "Press ENTER to continue"
 118  120  read unused
 119  121  
 120  122  mutt -H $MAIL_FILE
      123 +rm -f $MSG_FILE
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX