]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-setup-builddir: create usage output
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 9 Dec 2016 14:32:08 +0000 (16:32 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Dec 2016 22:47:31 +0000 (22:47 +0000)
Created usage output for oe-setup-builddir script.

[YOCTO #10751]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-setup-builddir

index e53f73c9ce0156aca983d293d04908f2b74fa76f..ef495517aaafd8150313ac1f8f5eb5079c90d09b 100755 (executable)
@@ -23,6 +23,14 @@ if [ -z "$BUILDDIR" ]; then
     exit 1
 fi
 
+if [ "$1" = '--help' -o "$1" = '-h' ]; then
+    echo 'Usage: oe-setup-builddir'
+    echo ''
+    echo "OpenEmbedded setup-builddir - setup build directory $BUILDDIR"
+    echo ''
+    exit 2
+fi
+
 mkdir -p "$BUILDDIR/conf"
 
 if [ ! -d "$BUILDDIR" ]; then