1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

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.
This commit is contained in:
Linus Groh 2021-01-21 09:31:31 +01:00 committed by Andreas Kling
parent 82c879c315
commit a4fbdb97c7

View file

@ -236,8 +236,11 @@ uninstall() {
>&2 echo "Error: $port is not installed. Cannot uninstall." >&2 echo "Error: $port is not installed. Cannot uninstall."
fi fi
} }
do_fetch() { do_installdepends() {
echo "Installing dependencies of $port!"
installdepends installdepends
}
do_fetch() {
echo "Fetching $port!" echo "Fetching $port!"
fetch fetch
} }
@ -282,6 +285,7 @@ do_uninstall() {
uninstall uninstall
} }
do_all() { do_all() {
do_installdepends
do_fetch do_fetch
do_patch do_patch
do_configure do_configure
@ -293,14 +297,14 @@ if [ -z "${1:-}" ]; then
do_all do_all
else else
case "$1" in 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 do_$1
;; ;;
--auto) --auto)
do_all $1 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 exit 1
;; ;;
esac esac