1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-05 03:27:10 +01:00
build/check_update.sh
David Oberhollenzer b472ff031a Move file override functions to seperate helper script file
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-05-10 16:01:53 +02:00

27 lines
507 B
Bash
Executable file

#!/bin/bash
set -e
SCRIPTDIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
# dummy toolchain variables
export LINUXPKG="linux"
# utilities
source "$SCRIPTDIR/util/depends.sh"
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 "$pkg/build"
version=$(check_update)
if [ ! -z $version ]; then
echo "$name has newer version: $version"
fi
done