termux-packages/scripts/list-versions.sh
Fredrik Fornwall b3f68a9b5c Update build tools version to 28.0.2
Also extract setting ndk and build tools version to
scripts/properties.sh to avoid duplication.
2018-08-15 16:52:18 +02:00

22 lines
422 B
Bash
Executable File

#!/usr/bin/env bash
. scripts/properties.sh
check_package() { # path
local path=$1
local pkg=`basename $path`
TERMUX_PKG_REVISION=0
TERMUX_ARCH=aarch64
. $path/build.sh
if [ "$TERMUX_PKG_REVISION" != "0" ] || [ "$TERMUX_PKG_VERSION" != "${TERMUX_PKG_VERSION/-/}" ]; then
TERMUX_PKG_VERSION+="-$TERMUX_PKG_REVISION"
fi
echo "$pkg=$TERMUX_PKG_VERSION"
}
for path in packages/*; do
(
check_package $path
)
done