[gimp] build/win: Improvements to checkversions.sh
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] build/win: Improvements to checkversions.sh
- Date: Sun, 18 May 2014 15:45:31 +0000 (UTC)
commit e9158b8be0873a83c4fa3d6cbfea01fa99c005e6
Author: Michael Henning <drawoc darkrefraction com>
Date: Sun May 18 11:40:09 2014 -0400
build/win: Improvements to checkversions.sh
checkversions.sh now:
* No longer needs a build output directory to run
* Has comments
* Filters out irrelevant results
build/windows/jhbuild/checkversions.sh | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/build/windows/jhbuild/checkversions.sh b/build/windows/jhbuild/checkversions.sh
index 84e388f..62608e2 100755
--- a/build/windows/jhbuild/checkversions.sh
+++ b/build/windows/jhbuild/checkversions.sh
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]