From patchwork Mon Sep 1 07:16:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Khlebnikov X-Patchwork-Id: 4817241 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5CBB19F2ED for ; Mon, 1 Sep 2014 07:18:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6AC372017E for ; Mon, 1 Sep 2014 07:18:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9451F201B4 for ; Mon, 1 Sep 2014 07:18:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752570AbaIAHQs (ORCPT ); Mon, 1 Sep 2014 03:16:48 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:37299 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752591AbaIAHQr (ORCPT ); Mon, 1 Sep 2014 03:16:47 -0400 Received: by mail-lb0-f181.google.com with SMTP id n15so5292600lbi.26 for ; Mon, 01 Sep 2014 00:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=+e9wiIhaOjhES1EMht93rvemPB9R5eBseWpoN5Ljkxg=; b=Ip2FtwjwMcrHwo2uWVB8HQfKBcmfAuXJar14idzcrcSByrDgA9w2s+Z4jgiJYmnlNQ 8M2693fH/Xf1+yyoZ6stdmrz1rc7nOevas7LriBqwJAk7m2XRfOV1ZAzermZBPjByNyw 2l4LaUgKjcvsRKm9q4pbCj3UMYCr6SE6fMUbByuVN57+ZGhPDTfteKyU0MpQAqWZov5Y ttwZzyo9xrheSYNDYNPbqYzHLuNOOTq6iZ29acZT09/uRybSsdJUOztdfKrJPaEw0RY9 /iCX7yVYMeXS1UNkj/q0copLzjttnpSLXw5w8FdZhmJS+chj4YJnX5kJ0SqWF8UGiimH OPRQ== X-Received: by 10.113.4.132 with SMTP id ce4mr25387040lbd.2.1409555805338; Mon, 01 Sep 2014 00:16:45 -0700 (PDT) Received: from localhost (37-145-28-45.broadband.corbina.ru. [37.145.28.45]) by mx.google.com with ESMTPSA id q3sm1722026laj.38.2014.09.01.00.16.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Sep 2014 00:16:44 -0700 (PDT) Subject: [PATCH v2 2/4] scripts/config: add option for changing output for undefined options From: Konstantin Khlebnikov To: Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Paul Bolle , Geert Uytterhoeven Date: Mon, 01 Sep 2014 11:16:32 +0400 Message-ID: <20140901071632.28909.31322.stgit@zurg> In-Reply-To: <20140901065916.28909.35097.stgit@zurg> References: <20140901065916.28909.35097.stgit@zurg> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds command line option '--if-undef' which replaces string 'undef' in output of next command '--state' with whatever you want. Also it adds grep key -s to suppress error messages about nonexistent file. Signed-off-by: Konstantin Khlebnikov --- scripts/config | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/config b/scripts/config index 026aeb4..178652c 100755 --- a/scripts/config +++ b/scripts/config @@ -6,6 +6,9 @@ myname=${0##*/} # If no prefix forced, use the default CONFIG_ CONFIG_="${CONFIG_-CONFIG_}" +# Output for undefined options +UNDEF="undef" + usage() { cat >&2 <