mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
Meta: Remove unused function check_program_version_at_least
The function `check_program_version_at_least` was only used in `ladybird.sh`, which was removed in PR #4904.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
90525f7e97
commit
b579608d41
Notes:
github-actions[bot]
2025-12-01 12:04:13 +00:00
Author: https://github.com/lpas Commit: https://github.com/LadybirdBrowser/ladybird/commit/b579608d41f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6980 Reviewed-by: https://github.com/gmta ✅
@@ -17,24 +17,6 @@ exit_if_running_as_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Usage: check_program_version_at_least <Display Name> <Program Name> <Version String>
|
|
||||||
check_program_version_at_least()
|
|
||||||
{
|
|
||||||
echo -n "Checking for $1 version at least $3... "
|
|
||||||
if ! command -v "$2" > /dev/null 2>&1; then
|
|
||||||
echo "ERROR: Cannot find $2 ($1)"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
v=$("$2" --version 2>&1 | grep -E -o '[0-9]+\.[0-9\.]+[a-z]*' | head -n1)
|
|
||||||
if printf '%s\n' "$3" "$v" | sort -V -c &>/dev/null; then
|
|
||||||
echo "ok, found $v"
|
|
||||||
return 0;
|
|
||||||
else
|
|
||||||
echo "ERROR: found version $v, too old!"
|
|
||||||
return 1;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
get_number_of_processing_units() {
|
get_number_of_processing_units() {
|
||||||
number_of_processing_units="nproc"
|
number_of_processing_units="nproc"
|
||||||
SYSTEM_NAME="$(uname -s)"
|
SYSTEM_NAME="$(uname -s)"
|
||||||
|
|||||||
Reference in New Issue
Block a user