summaryrefslogtreecommitdiff
path: root/chromium/ppapi/c/documentation/check.sh
blob: 651ca51e97ecda4a117df29ff37a4bd9fb97f6e2 (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
#!/bin/bash
# Copyright 2013 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# simple script to check html via tidy. Either specify html files on
# command line or rely on default which checks all html files in
# current directory
set -o nounset
set -o errexit


CheckFile () {
  echo "========================================"
  echo "checking $1"
  echo "========================================"
  tidy -e -q $1
}


if [ $# -eq 0  ] ; then
  for file in *.html ; do
   CheckFile ${file}
  done
else
  for file in $* ; do
   CheckFile ${file}
  done
fi