1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-14 23:26:39 +00:00
termux-packages/scripts/check-versions.sh
2019-02-15 18:01:09 +02:00

22 lines
472 B
Bash
Executable File

#!/usr/bin/env bash
# check-versions.sh - script to open packages in a browser for checking their versions
OPEN=xdg-open
if [ $(uname) = Darwin ]; then OPEN=open; fi
check_package() { # path
local path=$1
local pkg=$(basename $path)
. $path/build.sh
echo -n "$pkg - $TERMUX_PKG_VERSION"
read
$OPEN $TERMUX_PKG_HOMEPAGE
}
# Run each package in separate process since we include their environment variables:
for path in packages/*; do
(
check_package $path
)
done