blob: c2f4d9b409efe45c3f41de0b1d816043e07f7bf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/usr/bin/env bash
for folder in . samples ; do
printf '%-10s ' ${folder}
printf '%-20s ' layman-global.txt
printf '%-10s ' DTD
xmllint --noout --dtdvalid schema/layman-global.dtd ${folder}/layman-global.txt \
&& echo VALID \
|| echo BROKEN
printf '%-10s ' ${folder}
printf '%-20s ' layman-global.txt
printf '%-10s ' 'Relax NG'
{
xmllint --noout --relaxng schema/layman-global.rng ${folder}/layman-global.txt \
&& echo VALID \
|| echo BROKEN
} |& grep -v ' validates$'
printf '%-10s ' ${folder}
printf '%-20s ' repositories.xml
printf '%-10s ' DTD
xmllint --noout --dtdvalid schema/repositories.dtd ${folder}/repositories.xml \
&& echo VALID \
|| echo BROKEN
printf '%-10s ' ${folder}
printf '%-20s ' repositories.xml
printf '%-10s ' 'Relax NG'
{
xmllint --noout --relaxng schema/repositories.rng ${folder}/repositories.xml \
&& echo VALID \
|| echo BROKEN
} |& grep -v ' validates$'
done
|