Skip to contentSkip to conversation

oe-setup-builddir: create usage output

PATCH New Ed Bartosh 1 participant 1 message Dec 9, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 oe-setup-builddir: create usage output

Created usage output for oe-setup-builddir script.

[YOCTO #10751]

---
 scripts/oe-setup-builddir | 8 ++++++++
 1 file changed, 8 insertions(+)
scripts/oe-setup-builddir +8 -0
index e53f73c..ef49551 100755
@@ -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
Signature · 1 line
2.1.4