Skip to content

Commit

Permalink
Ports: Make the build step messages use ellipsis rather than excl. point
Browse files Browse the repository at this point in the history
This stops the port build system from yelling at the user. This commit
also adds a "success" message after the "Adding to database" message.
  • Loading branch information
sin-ack authored and linusg committed Aug 15, 2021
1 parent 0a18425 commit 06a6b68
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Ports/.port_include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ addtodb() {
touch "$packagesdb"
fi
if ! grep -E "^(auto|manual) $port $version" "$packagesdb" > /dev/null; then
echo "Adding $port $version to database of installed ports!"
echo "Adding $port $version to database of installed ports..."
if [ "${1:-}" = "--auto" ]; then
echo "auto $port $version" >> "$packagesdb"
else
Expand All @@ -395,6 +395,7 @@ addtodb() {
echo "dependency $port$dependlist" >> "$packagesdb"
fi
fi
echo "Successfully installed $port $version."
else
>&2 echo "Warning: $port $version already installed. Not adding to database of installed ports!"
fi
Expand Down Expand Up @@ -433,22 +434,22 @@ uninstall() {
fi
}
do_installdepends() {
echo "Installing dependencies of $port!"
echo "Installing dependencies of $port..."
installdepends
}
do_fetch() {
echo "Fetching $port!"
echo "Fetching $port..."
fetch
}
do_patch() {
echo "Patching $port!"
echo "Patching $port..."
pre_patch
patch_internal
}
do_configure() {
ensure_build
if [ "$useconfigure" = "true" ]; then
echo "Configuring $port!"
echo "Configuring $port..."
pre_configure
configure
post_configure
Expand All @@ -458,32 +459,32 @@ do_configure() {
}
do_build() {
ensure_build
echo "Building $port!"
echo "Building $port..."
build
}
do_install() {
ensure_build
echo "Installing $port!"
echo "Installing $port..."
install
install_main_launcher
install_main_icon
post_install
addtodb "${1:-}"
}
do_clean() {
echo "Cleaning workdir and .out files in $port!"
echo "Cleaning workdir and .out files in $port..."
clean
}
do_clean_dist() {
echo "Cleaning dist in $port!"
echo "Cleaning dist in $port..."
clean_dist
}
do_clean_all() {
echo "Cleaning all in $port!"
echo "Cleaning all in $port..."
clean_all
}
do_uninstall() {
echo "Uninstalling $port!"
echo "Uninstalling $port..."
uninstall
}
do_showproperty() {
Expand Down

0 comments on commit 06a6b68

Please sign in to comment.