yoctors: added ystatus()
authorStephane Desneux <stephane.desneux@eurogiciel.fr>
Mon, 8 Apr 2013 07:52:11 +0000 (09:52 +0200)
committerStephane Desneux <stephane.desneux@eurogiciel.fr>
Mon, 8 Apr 2013 07:52:11 +0000 (09:52 +0200)
yoctorc

diff --git a/yoctorc b/yoctorc
index 58e9ffa..da30013 100644 (file)
--- a/yoctorc
+++ b/yoctorc
@@ -44,6 +44,20 @@ function ycheck() {
     return 0
 }
 
+function ystatus() {
+    if [[ -z "$YOCTO_BUILDDIR" ]]; then
+       echo "yinit not called" >&2
+       return 1
+    fi
+
+    echo "YOCTODIR=$YOCTODIR"
+    echo "OEDIR=$OEDIR"
+    echo "YOCTO_BUILDDIR=$YOCTO_BUILDDIR"
+    echo "YOCTO_LAST_PKG=$YOCTO_LAST_PKG"
+
+    return 0
+}
+
 function ycd () {
     ycheck || return 1