termux-packages/scripts/check-versions.sh

22 lines
472 B
Bash
Raw Normal View History

2015-06-12 23:03:31 +00:00
#!/usr/bin/env bash
# check-versions.sh - script to open packages in a browser for checking their versions
OPEN=xdg-open
2019-02-12 08:41:30 +00:00
if [ $(uname) = Darwin ]; then OPEN=open; fi
2015-06-12 23:03:31 +00:00
2017-11-07 03:57:55 +00:00
check_package() { # path
local path=$1
2019-02-12 08:41:30 +00:00
local pkg=$(basename $path)
2015-06-12 23:03:31 +00:00
. $path/build.sh
2017-11-07 03:57:55 +00:00
echo -n "$pkg - $TERMUX_PKG_VERSION"
2015-06-12 23:03:31 +00:00
read
$OPEN $TERMUX_PKG_HOMEPAGE
2017-11-07 03:57:55 +00:00
}
# Run each package in separate process since we include their environment variables:
for path in packages/*; do
(
check_package $path
2015-06-12 23:03:31 +00:00
)
done