[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090107213315.GN496@one.firstfloor.org>
Date: Wed, 7 Jan 2009 22:33:15 +0100
From: Andi Kleen <andi@...stfloor.org>
To: Sam Ravnborg <sam@...nborg.org>
Cc: Andi Kleen <andi@...stfloor.org>, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [1/3] KBUILD: Add script to manipulate .config files on the command line
> When I try to run the script with no arguments nothing happens!?!
>
> I will merge as is but please followup with a patch so it prints out usage
> in this situation.
Here's a patch
-Andi
---
Kbuild: print usage with no arguments in scripts/config
Requested by Sam.
Signed-off-by: Andi Kleen <ak@...ux.intel.com>
---
scripts/config | 4 ++++
1 file changed, 4 insertions(+)
Index: linux-2.6.28-kbuild/scripts/config
===================================================================
--- linux-2.6.28-kbuild.orig/scripts/config 2009-01-02 02:56:55.000000000 +0100
+++ linux-2.6.28-kbuild/scripts/config 2009-01-07 22:17:40.000000000 +0100
@@ -60,6 +60,10 @@
FN=.config
fi
+if [ "$1" = "" ] ; then
+ usage
+fi
+
while [ "$1" != "" ] ; do
CMD="$1"
shift
--
ak@...ux.intel.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists