File: validate-html-lint

package info (click to toggle)
developers-reference 12.18
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,172 kB
  • sloc: makefile: 177; javascript: 74; python: 74; sh: 68; perl: 25
file content (22 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download | duplicates (4)
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="*.html"
XML_LINT_SUMMARY="html-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}