File: check.sh

package info (click to toggle)
hevea 2.29-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,472 kB
  • ctags: 2,504
  • sloc: ml: 18,983; sh: 382; makefile: 301; ansic: 132
file content (27 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (9)
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
#! /bin/sh -e

. config.sh
TMP1=/tmp/check.1.$$
TMP2=/tmp/check.2.$$
TMP3=/tmp/check.3.$$

check () {
  DIR=$1
  shift
  ( cd $DIR ; ls *.hva > $TMP1 )
  echo > $TMP2
  for i in $*
  do
    echo $i >> $TMP2
  done
  sort $TMP1 > $TMP3 && mv $TMP3 $TMP1
  sort $TMP2 > $TMP3 && mv $TMP3 $TMP2
  diff $TMP1 $TMP2
  /bin/rm -f $TMP1 $TMP2 $TMP3
}

check . $ALLLIB
check html $HTMLLIB
check text $TEXTLIB
check info $INFOLIB