2015-06-13 01:03:31 +02: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 09:41:30 +01:00
|
|
|
if [ $(uname) = Darwin ]; then OPEN=open; fi
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2017-11-07 04:57:55 +01:00
|
|
|
check_package() { # path
|
|
|
|
local path=$1
|
2019-02-12 09:41:30 +01:00
|
|
|
local pkg=$(basename $path)
|
2015-06-13 01:03:31 +02:00
|
|
|
. $path/build.sh
|
2017-11-07 04:57:55 +01:00
|
|
|
echo -n "$pkg - $TERMUX_PKG_VERSION"
|
2015-06-13 01:03:31 +02:00
|
|
|
read
|
|
|
|
$OPEN $TERMUX_PKG_HOMEPAGE
|
2017-11-07 04:57:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Run each package in separate process since we include their environment variables:
|
|
|
|
for path in packages/*; do
|
|
|
|
(
|
|
|
|
check_package $path
|
2015-06-13 01:03:31 +02:00
|
|
|
)
|
|
|
|
done
|