Improve check-versions.sh

This commit is contained in:
Fredrik Fornwall 2017-11-07 04:57:55 +01:00
parent 052d685730
commit e4a9db43b8
1 changed files with 10 additions and 5 deletions

View File

@ -4,13 +4,18 @@
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
(
pkg=`basename $path`
. $path/build.sh
echo -n "$pkg - $TERMUX_PKG_VERSION - press Return to check homepage"
read
$OPEN $TERMUX_PKG_HOMEPAGE
check_package $path
)
done