summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-11-13 14:32:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-14 13:39:48 +0000
commit6f54fa277d411961fca37e03d3a08ab8e0d7575f (patch)
tree19b907dd07296ecd24c38cf93ce80a33e7cb7889 /scripts
parent9c275615dc275ee03e6cc102cbe62724112e1ca6 (diff)
downloadast2050-yocto-poky-6f54fa277d411961fca37e03d3a08ab8e0d7575f.zip
ast2050-yocto-poky-6f54fa277d411961fca37e03d3a08ab8e0d7575f.tar.gz
scripts/create-recipe: fix handling of --help
If --help is specified as the first argument, show the standard help text instead of trying to process it as a URL. (From OE-Core rev: abb139b10c3f431bcebb1847621f97d7ec6249ce) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-recipe2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-recipe b/scripts/create-recipe
index 5613e92..b192990 100755
--- a/scripts/create-recipe
+++ b/scripts/create-recipe
@@ -1794,7 +1794,7 @@ sub calculate_sums
# Main program
#
-if ( @ARGV < 1 ) {
+if ( @ARGV < 1 || $ARGV[0] eq "--help" ) {
print "Usage: $0 [-r] <url-of-source-tarballs>\n";
exit(1);
}
OpenPOWER on IntegriCloud