1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-16 16:37:10 +01:00
build/check_update.sh
David Oberhollenzer fa4eff263b Cleanup: implement defaults for package functions
This commit adds an "emptypackage" template that implements defaults
for all package functions and is included before every package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 15:16:58 +02:00

28 lines
542 B
Bash
Executable file

#!/bin/bash
set -e
SCRIPTDIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
# dummy toolchain variables
PREFERED_PROVIDER[linux]="linux-lts"
export LAYERCONF=""
# utilities
source "$SCRIPTDIR/util/version.sh"
source "$SCRIPTDIR/util/override.sh"
# check all packages
for pkg in $SCRIPTDIR/pkg/*; do
[ -d $pkg ] || continue;
name=$(basename $pkg)
echo "-- checking $name"
source "$SCRIPTDIR/util/emptypkg.sh"
source "$pkg/build"
version=$(check_update)
if [ ! -z $version ]; then
echo "$name has newer version: $version"
fi
done