+ if ! xmllint --nonet --valid --noout $(find doc/ -maxdepth 1 -name '*.xml'); then
+ echo >&2 'WARNING: original docbook manpages have errors!'
+ elif ! xmllint --nonet --valid --noout $(find doc/ -mindepth 2 -maxdepth 2 -name '*.xml'); then
+ echo >&2 'WARNING: translated docbook manpages have errors, but originals are okay!'
+ fi
+elif [ "$1" = 'library' ]; then
+ librarysymbols() {
+ echo "Checking $1 in version $2"
+ local tmpfile=$(mktemp)
+ dpkg-gensymbols -p${1}${2} -ebuild/bin/${1}.so.${2} -Idebian/${1}${2}.symbols -O/dev/null 2> /dev/null > $tmpfile
+ echo '=== Missing symbols:'
+ grep '^+#MISSING' $tmpfile
+ echo '=== New symbols:'
+ grep '^+ ' $tmpfile | cut -d' ' -f 2 | cut -d'@' -f 1 | c++filt | while read line; do
+ echo " (c++)\"${line}@Base\" $VERSION"
+ done | sort -u
+ rm $tmpfile
+ }
+ librarysymbols 'libapt-pkg' "${LIBAPTPKGVERSION}"
+ echo
+ librarysymbols 'libapt-inst' "${LIBAPTINSTVERSION}"