mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 13:07:47 +00:00
Ports: Return early in parse_arguments() in .port_include.sh
This commit is contained in:
parent
f8e46ec296
commit
7ff99cb516
1 changed files with 20 additions and 20 deletions
|
@ -525,27 +525,27 @@ NO_GPG=false
|
||||||
parse_arguments() {
|
parse_arguments() {
|
||||||
if [ -z "${1:-}" ]; then
|
if [ -z "${1:-}" ]; then
|
||||||
do_all
|
do_all
|
||||||
else
|
return
|
||||||
case "$1" in
|
|
||||||
fetch|patch|shell|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty)
|
|
||||||
method=$1
|
|
||||||
shift
|
|
||||||
do_${method} "$@"
|
|
||||||
;;
|
|
||||||
--auto)
|
|
||||||
do_all $1
|
|
||||||
;;
|
|
||||||
--no-gpg-verification)
|
|
||||||
NO_GPG=true
|
|
||||||
shift
|
|
||||||
parse_arguments $@
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
>&2 echo "I don't understand $1! Supported arguments: fetch, patch, configure, build, install, installdepends, clean, clean_dist, clean_all, uninstall, showproperty."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
case "$1" in
|
||||||
|
fetch|patch|shell|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty)
|
||||||
|
method=$1
|
||||||
|
shift
|
||||||
|
do_${method} "$@"
|
||||||
|
;;
|
||||||
|
--auto)
|
||||||
|
do_all $1
|
||||||
|
;;
|
||||||
|
--no-gpg-verification)
|
||||||
|
NO_GPG=true
|
||||||
|
shift
|
||||||
|
parse_arguments $@
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
>&2 echo "I don't understand $1! Supported arguments: fetch, patch, configure, build, install, installdepends, clean, clean_dist, clean_all, uninstall, showproperty."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_arguments $@
|
parse_arguments $@
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue