PIKApp/build/windows/jhbuild/targetisunchanged

11 lines
281 B
Plaintext
Raw Permalink Normal View History

2023-09-26 00:35:21 +02:00
#!/bin/bash
sort targets/$1/_jhbuild/packagedb.xml > /tmp/packagedb.xml.a
sort targets/$2/_jhbuild/packagedb.xml > /tmp/packagedb.xml.b
COUNT=`diff -u /tmp/packagedb.xml.a /tmp/packagedb.xml.b | grep "^-" --count --max-count 2`
rm /tmp/packagedb.xml.{a,b}
exit $((COUNT - 1))