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

[YOCTO #10751]

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

index 81d62b8882c37735a6cd04fae8093a23f7ab63eb..13a5c460398a3038e1cd8d28d55ffb23bfd80fb1 100755 (executable)
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+if [ "$1" = '--help' -o "$1" = '-h' ] ; then
+    echo 'Usage: oe-find-native-sysroot [-h|--help]'
+    echo ''
+    echo 'OpenEmbedded find-native-sysroot - helper script to set'
+    echo 'environment variables OECORE_NATIVE_SYSROOT and PSEUDO'
+    echo 'to the path of the native sysroot directory and pseudo'
+    echo 'executable binary'
+    echo ''
+    echo 'options:'
+    echo '  -h, --help          show this help message and exit'
+    echo ''
+    exit 2
+fi
+
 if [ "x$OECORE_NATIVE_SYSROOT" = "x" ]; then
     BITBAKE=`which bitbake 2> /dev/null`
     if [ "x$BITBAKE" != "x" ]; then