mirror of https://github.com/GNOME/gimp.git
build/win: Improvements to checkversions.sh
checkversions.sh now: * No longer needs a build output directory to run * Has comments * Filters out irrelevant results
This commit is contained in:
parent
a2b2c82e44
commit
e9158b8be0
|
@ -1,14 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
grep -e entry targets/*/_jhbuild/packagedb.xml | grep -o -e "package[^//]*" | while read line; do
|
||||
COUPLE=`echo $line | grep -o -e "\"[^\"]*\"" | sed s/\"//g`
|
||||
./build list -r -a | sort | while read line; do
|
||||
# Parse jhbuild's module versions
|
||||
COUPLE=`echo $line | grep -o -e "[^ :()]*"`
|
||||
PACKAGE=`echo "$COUPLE" | sed -n 1p`
|
||||
VERSION=`echo "$COUPLE" | sed -n 2p | grep -o -e "[^- :]*" | sed -n 1p`
|
||||
|
||||
# Filter out git versions (40 char hashes), and metamodules (empty strings)
|
||||
if [ ${#VERSION} == 40 ] || [ ${#VERSION} == 0 ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
# Determine pacman's version of the package
|
||||
PACVERSION=`pacman -Qi $PACKAGE | grep Version | grep -o -e "[^- :]*" | sed -n 2p`
|
||||
|
||||
# Filter out packages that pacman doesn't know about
|
||||
if [ ${#PACVERSION} == 0 ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
# Warn if the versions are different
|
||||
if [ "$VERSION" != "$PACVERSION" ]; then
|
||||
echo $PACKAGE ":" $VERSION ":" $PACVERSION
|
||||
fi
|
||||
done
|
||||
|
||||
#pacman -Qi $1 | grep Version | grep -o -e "[^- :]*" | sed -n 2p
|
||||
|
|
Loading…
Reference in New Issue