From patchwork Thu Dec 11 20:55:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 5477571 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9C916BEEA8 for ; Thu, 11 Dec 2014 20:53:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7326B2024D for ; Thu, 11 Dec 2014 20:52:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B064820263 for ; Thu, 11 Dec 2014 20:52:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933369AbaLKUww (ORCPT ); Thu, 11 Dec 2014 15:52:52 -0500 Received: from mail-pd0-f179.google.com ([209.85.192.179]:50008 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758931AbaLKUwt (ORCPT ); Thu, 11 Dec 2014 15:52:49 -0500 Received: by mail-pd0-f179.google.com with SMTP id fp1so5717254pdb.38 for ; Thu, 11 Dec 2014 12:52:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iWORi1Y7DbTSGR7xXZYOy+oBEMRM5Wx09fuFPXBLKt4=; b=M8JbLlmelbSj3CXdo6CaE9u6mUbdIX/maXbp15ck23qMwaVBX0cYHxaUZ3odbqUtvd VGCXjtZ1ku6XTFj7mLDaI3JjRPH7xJiBEVqlQ2IOic9c8P4mzBtaVTQCdSBvUuFyoKGT mN8R4KbMeBPqpdgoralK1jiBFFCRDgpexZIk3lKLA5M8Xo5M8ja0DvOqi9y+syimoO23 RjV2m9lb9kLBXF0lO131RK/sWpjQZPFf29ss5zBEAXYqd6w5JZq5fcPYxiQ9aFuR+JOo ylVFFQTyacrvuxIu9Lu5GzbIeIP4A2Fy7WXOjPcUHWKqQAmBFVmdAlsmvRA52dH8B1ln N9Fw== X-Gm-Message-State: ALoCoQnWjZAIwzsAZk+xuqQvLXwX0dJhMvOY3iMJR0nm7nsidJRHzP0NJKBb8J82JFS96wrRkQLk X-Received: by 10.70.96.228 with SMTP id dv4mr20308047pdb.105.1418331169312; Thu, 11 Dec 2014 12:52:49 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id pc8sm2150902pdb.54.2014.12.11.12.52.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Dec 2014 12:52:48 -0800 (PST) From: Olof Johansson To: yann.morin.1998@free.fr Cc: linux-kbuild@vger.kernel.org, dvhart@linux.intel.com, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH 1/2] merge_config.sh: Display usage if given too few arguments Date: Thu, 11 Dec 2014 12:55:03 -0800 Message-Id: <1418331304-4821-1-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Two or more arguments are always expected. Show usage and exit if given less. Signed-off-by: Olof Johansson --- scripts/kconfig/merge_config.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 81b0c61..2ab91b9 100755 --- a/scripts/kconfig/merge_config.sh +++ b/scripts/kconfig/merge_config.sh @@ -77,6 +77,11 @@ while true; do esac done +if [ "$#" -lt 2 ] ; then + usage + exit +fi + INITFILE=$1 shift;