mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
leming's new pkgverchecker, much better
This commit is contained in:
parent
cdb8f66f08
commit
a7a6325ee9
1 changed files with 18 additions and 14 deletions
|
@ -9,20 +9,24 @@ REPODIR=/build/packages
|
||||||
|
|
||||||
cd $ABSDIR/$1
|
cd $ABSDIR/$1
|
||||||
|
|
||||||
echo "<h3>" ; echo $1 ; echo "</h3>"
|
if [[ ! $* ]]; then
|
||||||
echo ""
|
echo "usage: $0 <repository>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "$1"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
cd $REPODIR/$1
|
||||||
|
|
||||||
for i in `find . -maxdepth 1 -mindepth 1 -type d|sort`; do
|
for i in `find . -maxdepth 1 -mindepth 1 -type d|sort`; do
|
||||||
cd $ABSDIR/$1/$i > /dev/null 2>&1
|
PKGNAME=`grep ^pkgname= $i/PKGBUILD | sed -e 's/pkgname=//'`
|
||||||
echo "<b>"
|
PKGVER=`grep ^pkgver= $i/PKGBUILD | sed -e 's/pkgver=//'`
|
||||||
grep pkgname= PKGBUILD | sed -e 's/pkgname=//'
|
PKGREL=`grep ^pkgrel= $i/PKGBUILD | sed -e 's/pkgrel=/-/'`
|
||||||
echo "</b>"
|
if [[ -e $ABSDIR/$1/$i ]]; then
|
||||||
grep pkgver= PKGBUILD | sed -e 's/pkgver=//'
|
ABSVER=`grep ^pkgver= $ABSDIR/$1/$i/PKGBUILD | sed -e 's/pkgver=//'`
|
||||||
grep pkgrel= PKGBUILD | sed -e 's/pkgrel=/-/'
|
ABSREL=`grep ^pkgrel= $ABSDIR/$1/$i/PKGBUILD | sed -e 's/pkgrel=/-/'`
|
||||||
echo "</br>"
|
if [[ "$ABSVER$ABSREL" != "$PKGVER$PKGREL" ]]; then
|
||||||
echo ""
|
echo "$PKGNAME $PKGVER$PKGREL -> $ABSVER$ABSREL"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
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##'
|
|
||||||
|
|
Loading…
Reference in a new issue