diff options
author | Linus Groh <mail@linusgroh.de> | 2021-01-21 09:31:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-23 08:28:25 +0100 |
commit | a4fbdb97c7e5d24cfff8f8daec8ee570929ad523 (patch) | |
tree | 6dff60a12028cb7c6013526eabc4c74047f17531 /Ports | |
parent | 82c879c31538ec2bbe448cff778e107e7b80f600 (diff) | |
download | serenity-a4fbdb97c7e5d24cfff8f8daec8ee570929ad523.zip |
Ports: Install dependencies in separate "installdepends" step
Calling installdepends in do_fetch seems kinda silly and unexpected.
Let's add a separate step with the same name instead.
Diffstat (limited to 'Ports')
-rwxr-xr-x | Ports/.port_include.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index cd738c3b3b..5364221b69 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -236,8 +236,11 @@ uninstall() { >&2 echo "Error: $port is not installed. Cannot uninstall." fi } -do_fetch() { +do_installdepends() { + echo "Installing dependencies of $port!" installdepends +} +do_fetch() { echo "Fetching $port!" fetch } @@ -282,6 +285,7 @@ do_uninstall() { uninstall } do_all() { + do_installdepends do_fetch do_patch do_configure @@ -293,14 +297,14 @@ if [ -z "${1:-}" ]; then do_all else case "$1" in - fetch|patch|configure|build|install|clean|clean_dist|clean_all|uninstall) + fetch|patch|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall) do_$1 ;; --auto) do_all $1 ;; *) - >&2 echo "I don't understand $1! Supported arguments: fetch, patch, configure, build, install, clean, clean_dist, clean_all, uninstall." + >&2 echo "I don't understand $1! Supported arguments: fetch, patch, configure, build, install, installdepends, clean, clean_dist, clean_all, uninstall." exit 1 ;; esac |