From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757202Ab0JDUqo (ORCPT ); Mon, 4 Oct 2010 16:46:44 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:46355 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756392Ab0JDUqm (ORCPT ); Mon, 4 Oct 2010 16:46:42 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer; b=iOUWrYkJZn2IEAAI1sPHJJRyMS9ARvv7k6iyMt4mjY0nP4J0ctXANhD6OI98M1Z4BN 9AxTWJdFjIQlzP6tXRVxs7NPMDns0nsfo5adzR+w4eXDa6E19xLc0IEHx5zrivw9oC76 4C4ja7RhqYfdu4A52PXhwwo6sZ++8SmOcAci0= From: Nicolas Palix To: Julia Lawall , Gilles Muller , Nicolas Palix , Michal Marek , Sam Ravnborg , Joerg Roedel , cocci@diku.dk, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] Coccinelle: Improve user information with a new kind of comment Date: Mon, 4 Oct 2010 22:45:38 +0200 Message-Id: <1286225141-22027-1-git-send-email-npalix.work@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Improve user information with a new kind of comment about semantic patch output. Fix spelling. Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall --- scripts/coccicheck | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/coccicheck b/scripts/coccicheck index b8bcf1f..4655551 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -25,7 +25,7 @@ fi if [ "$MODE" = "" ] ; then if [ "$ONLINE" = "0" ] ; then - echo 'You have not explicitly specify the mode to use. Fallback to "report".' + echo 'You have not explicitly specified the mode to use. Fallback to "report".' echo 'You can specify the mode with "make coccicheck MODE="' echo 'Available modes are: report, patch, context, org' fi @@ -52,7 +52,12 @@ coccinelle () { FILE=`echo $COCCI | sed "s|$srctree/||"` - echo "Processing `basename $COCCI` with option(s) \"$OPT\"" + echo "Processing `basename $COCCI`" + echo "with option(s) \"$OPT\"" + echo 'Semantic patch information:' + + sed -e '/\/\/#/!d' -e 's|^//#||' $COCCI + echo 'Message example to submit a patch:' sed -e '/\/\/\//!d' -e 's|^///||' $COCCI -- 1.7.0.4