mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
scripts/create_addon: use correct name in usage etc.
This commit is contained in:
parent
cf573b1272
commit
90958e9472
@ -9,7 +9,7 @@
|
|||||||
usage() {
|
usage() {
|
||||||
cat - >&2 <<EOF
|
cat - >&2 <<EOF
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
./script/create_addon_mt [OPTION] [addons]...
|
./script/create_addon [OPTION] [addons]...
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
create_addon builds one or more addons.
|
create_addon builds one or more addons.
|
||||||
@ -33,13 +33,13 @@ DESCRIPTION
|
|||||||
|
|
||||||
EXAMPLE
|
EXAMPLE
|
||||||
build all addons
|
build all addons
|
||||||
> ./script/create_addon_mt all
|
> ./script/create_addon all
|
||||||
|
|
||||||
build audio encoders and decoders, only
|
build audio encoders and decoders, only
|
||||||
> ./script/create_addon_mt audioencoder.* audiodecoder.*
|
> ./script/create_addon audioencoder.* audiodecoder.*
|
||||||
|
|
||||||
build all, but not binary
|
build all, but not binary
|
||||||
> ./script/create_addon_mt all -binary
|
> ./script/create_addon all -binary
|
||||||
EOF
|
EOF
|
||||||
exit ${1:-0}
|
exit ${1:-0}
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ get_addons() {
|
|||||||
|
|
||||||
if [ ${count} -eq 0 -a -n "${filter}" ]; then
|
if [ ${count} -eq 0 -a -n "${filter}" ]; then
|
||||||
echo "$(print_color CLR_ERROR "ERROR: no addons matched for filter ${filter}")" >&2
|
echo "$(print_color CLR_ERROR "ERROR: no addons matched for filter ${filter}")" >&2
|
||||||
echo "For more information type: ./scripts/create_addon_mt --help" >&2
|
echo "For more information type: ./scripts/create_addon --help" >&2
|
||||||
die
|
die
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
usage() {
|
usage() {
|
||||||
cat - >&2 <<EOUSAGE
|
cat - >&2 <<EOUSAGE
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
./script/create_addon [OPTION] [addons]...
|
./script/create_addon_st [OPTION] [addons]...
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
create_addon builds one or more addons.
|
create_addon_st builds one or more addons.
|
||||||
|
|
||||||
--show-only
|
--show-only
|
||||||
output the list of packages, which are intented to build
|
output the list of packages, which are intented to build
|
||||||
@ -44,13 +44,13 @@ DESCRIPTION
|
|||||||
|
|
||||||
EXAMPLE
|
EXAMPLE
|
||||||
build all addons
|
build all addons
|
||||||
> ./script/create_addon all
|
> ./script/create_addon_st all
|
||||||
|
|
||||||
build audio encoders and decoders, only
|
build audio encoders and decoders, only
|
||||||
> ./script/create_addon audioencoder.* audiodecoder.*
|
> ./script/create_addon_st audioencoder.* audiodecoder.*
|
||||||
|
|
||||||
build all, but not binary
|
build all, but not binary
|
||||||
> ./script/create_addon all -binary
|
> ./script/create_addon_st all -binary
|
||||||
|
|
||||||
EOUSAGE
|
EOUSAGE
|
||||||
exit ${1:0}
|
exit ${1:0}
|
||||||
@ -94,7 +94,7 @@ function find_addons() {
|
|||||||
# abort when nothing found and not embedded
|
# abort when nothing found and not embedded
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "$(print_color CLR_ERROR "ERROR: '$1' matches nothing...")" >&$SILENT_OUT
|
echo "$(print_color CLR_ERROR "ERROR: '$1' matches nothing...")" >&$SILENT_OUT
|
||||||
echo "for more informations type: ./scripts/create_addon --help" >&$SILENT_OUT
|
echo "for more informations type: ./scripts/create_addon_st --help" >&$SILENT_OUT
|
||||||
die
|
die
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user