From: Ed Bartosh Date: Fri, 9 Dec 2016 14:32:08 +0000 (+0200) Subject: oe-setup-builddir: create usage output X-Git-Tag: uninative-1.5~1140 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=77606455df7d45fd014c3603e1cf1b24efd37695;p=openembedded-core.git oe-setup-builddir: create usage output Created usage output for oe-setup-builddir script. [YOCTO #10751] Signed-off-by: Ed Bartosh Signed-off-by: Ross Burton --- diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir index e53f73c9ce..ef495517aa 100755 --- a/scripts/oe-setup-builddir +++ b/scripts/oe-setup-builddir @@ -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