File: check

package info (click to toggle)
cracklib2 2.7-8
  • links: PTS
  • area: main
  • in suites: potato
  • size: 424 kB
  • ctags: 113
  • sloc: ansic: 1,914; sh: 1,084; makefile: 166; perl: 63
file content (45 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
#
# source:
#   /var/cvs/projects/debian/cracklib/debian/dpkg.scripts/check,v
#
# revision:
#   @(#) check,v 1.1 1999/03/29 15:23:04 jplejacq Exp
#
# copyright:
#   Copyright (C) 1998, 1999 Jean Pierre LeJacq <jplejacq@quoininc.com>
#
#   Distributed under the GNU GENERAL PUBLIC LICENSE.
#
# synopsis:
#   . check
#
# description:
#   Check binary packages.
#
#   This program overrides dpkg.common/check.in so that you have the
#   opportunity to override the standard checks.


readonly html_style_overrides="\
  ${DH_TMPDIR}${d_pkgdev_doc}/index.html\
  ${DH_TMPDIR}${d_pkglib_doc}/index.html\
  ${DH_TMPDIR}${d_pkgruntime_doc}/index.html\
"


check_html_style_overrides()
# postconditions:
#   Returns 0 on no error, exits with non-zero otherwise.
#
# description:
#   Check HTML for compliance to weblint style checker.
#
#   The check for index.html is there since weblint doesn't correctly
#   recognize the single closing tags <br/> and <hr/>.
#   
{
  weblint -d unknown-element "${1}"

  return 0
}