oe-setup-rpmrepo: standardize usage output
Made usage output of oe-setup-rpmrepo to look similar to the output of other oe scripts. [YOCTO #10751] (From OE-Core rev: 5423c9a412c680b781417a64b412838845b5d075) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
eb78c9cd2c
commit
78087eba73
|
@ -23,16 +23,6 @@
|
||||||
# Instead, use OE_TMPDIR for passing this in externally.
|
# Instead, use OE_TMPDIR for passing this in externally.
|
||||||
TMPDIR="$OE_TMPDIR"
|
TMPDIR="$OE_TMPDIR"
|
||||||
|
|
||||||
function usage() {
|
|
||||||
echo "Usage: $0 <rpm-dir>"
|
|
||||||
echo " <rpm-dir>: default is $TMPDIR/deploy/rpm"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ $# -gt 1 ]; then
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
setup_tmpdir() {
|
setup_tmpdir() {
|
||||||
if [ -z "$TMPDIR" ]; then
|
if [ -z "$TMPDIR" ]; then
|
||||||
# Try to get TMPDIR from bitbake
|
# Try to get TMPDIR from bitbake
|
||||||
|
@ -53,6 +43,23 @@ setup_tmpdir() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setup_tmpdir
|
||||||
|
|
||||||
|
function usage() {
|
||||||
|
echo 'Usage: oe-setup-rpmrepo rpm-dir'
|
||||||
|
echo ''
|
||||||
|
echo 'OpenEmbedded setup-rpmrepo - setup rpm repository'
|
||||||
|
echo ''
|
||||||
|
echo 'arguments:'
|
||||||
|
echo " rpm-dir rpm repo directory, default is $TMPDIR/deploy/rpm"
|
||||||
|
echo ''
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ $# -gt 1 -o "$1" = '--help' -o "$1" = '-h' ]; then
|
||||||
|
usage
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
setup_sysroot() {
|
setup_sysroot() {
|
||||||
# Toolchain installs set up $OECORE_NATIVE_SYSROOT in their
|
# Toolchain installs set up $OECORE_NATIVE_SYSROOT in their
|
||||||
# environment script. If that variable isn't set, we're
|
# environment script. If that variable isn't set, we're
|
||||||
|
@ -68,7 +75,6 @@ setup_sysroot() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_tmpdir
|
|
||||||
setup_sysroot
|
setup_sysroot
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue