mirror of
https://github.com/pygos/build.git
synced 2024-11-05 03:27:10 +01:00
b1bdce20a9
Crunch project websites and try to find the latest version for each package without having to do the work manually. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
27 lines
503 B
Bash
Executable file
27 lines
503 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/misc.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
|