Skip to content

Commit 4e5690b

Browse files
author
Seth Schoen
committed
xmllint RELAX NG validation in crx build script too
1 parent 688497e commit 4e5690b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

makecrx.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ else
5050
exit 1
5151
fi
5252

53+
if [ -f relaxng.xml -a -x "$(which xmllint)" ] >&2
54+
then
55+
if xmllint --noout --relaxng relaxng.xml src/chrome/content/rules/*.xml
56+
then
57+
echo Validation of rulesets with RELAX NG grammar completed. >&2
58+
else
59+
echo ERROR: Validation of rulesets with RELAX NG grammar failed. >&2
60+
exit 1
61+
fi
62+
else
63+
echo Validation of rulesets with RELAX NG grammar was SKIPPED. >&2
64+
fi
65+
5366
sed -e "s/VERSION/$VERSION/g" chromium/updates-master.xml > chromium/updates.xml
5467

5568
[ -d pkg ] || mkdir -p pkg

0 commit comments

Comments
 (0)