PKGBUILDs/scripts/pkgverchecker

29 lines
885 B
Text
Raw Normal View History

2010-10-07 16:17:09 +00:00
# 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
2010-10-07 19:53:13 +00:00
REPODIR=/build/packages
2010-10-07 16:17:09 +00:00
cd $ABSDIR/$1
2010-10-07 21:49:21 +00:00
echo "<h3>" ; echo $1 ; echo "</h3>"
2010-10-07 19:53:13 +00:00
echo ""
2010-10-07 21:49:21 +00:00
for i in `find . -maxdepth 1 -mindepth 1 -type d|sort`; do
2010-10-07 16:17:09 +00:00
cd $ABSDIR/$1/$i > /dev/null 2>&1
2010-10-07 19:53:13 +00:00
echo "<b>"
2010-10-07 16:17:09 +00:00
grep pkgname= PKGBUILD | sed -e 's/pkgname=//'
2010-10-07 19:53:13 +00:00
echo "</b>"
2010-10-07 16:17:09 +00:00
grep pkgver= PKGBUILD | sed -e 's/pkgver=//'
2010-10-07 21:49:21 +00:00
grep pkgrel= PKGBUILD | sed -e 's/pkgrel=/-/'
echo "</br>"
2010-10-07 16:17:09 +00:00
echo ""
done
2010-10-07 19:53:13 +00:00
echo "<br /><br /><h2>In Repository</h2>"
cd $REPODIR/$1
ls | sed 's#.pkg.tar.xz#<br />#' | sed '#s#.pkg.tar.gz#<br />#' | sed 's#core.db.tar.gz##' | sed 's#extra.db.tar.gz##' | sed 's#community.db.tar.gz##'