mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
I wrote code
This commit is contained in:
parent
73e1d6daaf
commit
874e005b7f
1 changed files with 16 additions and 0 deletions
16
scripts/pkgverchecker
Executable file
16
scripts/pkgverchecker
Executable file
|
@ -0,0 +1,16 @@
|
|||
# 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
|
Loading…
Reference in a new issue