PKGBUILDs/scripts/pkgverchecker
2010-10-07 11:17:09 -05:00

16 lines
492 B
Text
Executable file

# This is a simple package version checker (for now)
#
# So far it only lists the names and versions of packages in ABS.
# Planned is to grab repository pkgvers, then ABS vers, and only
# output the differences, i.e. what packages need to be upgraded.
ABSDIR=/build/abs
cd $ABSDIR/$1
for i in `find . -maxdepth 1 -mindepth 1 -type d`; do
cd $ABSDIR/$1/$i > /dev/null 2>&1
grep pkgname= PKGBUILD | sed -e 's/pkgname=//'
grep pkgver= PKGBUILD | sed -e 's/pkgver=//'
echo ""
done