File: test_gtkbuilder_file_validation.sh

package info (click to toggle)
giggle 0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,084 kB
  • sloc: ansic: 23,243; sh: 11,642; makefile: 442; xml: 81
file content (14 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#/bin/sh -e

which xmllint >/dev/null 2>&1
if [ $? -ne 0 ]; then
  echo "xmllint not installed. Please install it."
  exit 0
fi

for x in `find ../data/ -name "*.ui"`
do
  # TODO: Is there a GtkBuilder DTD?
  echo Validating $x
  xmllint --noout $x || exit 1
done