File: validate-xmls-lint

package info (click to toggle)
developers-reference 13.20
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,272 kB
  • sloc: makefile: 176; python: 76; javascript: 72; sh: 68; perl: 25
file content (22 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

dir_name=$(dirname $0)
. ${dir_name}/xmllint-functions

XML_FILE_PATTERN="*.xml"
XML_LINT_SUMMARY="xmls-lint-summary.csv"
if [[ -n ${AUTOPKGTEST_ARTIFACTS} ]] ; then
    XML_LINT_SUMMARY="${AUTOPKGTEST_ARTIFACTS}/${XML_LINT_SUMMARY}"
fi


xml_lint_command="lint_xmls ${XML_FILE_PATTERN} ${XML_LINT_SUMMARY}"
echo "$0: running '${xml_lint_command}'..."
${xml_lint_command}
xml_lint_result=$?

echo "$0: '${xml_lint_command}' returned ${xml_lint_result}"


exit ${xml_lint_result}