Comment PFIL_HOOKS since it should not be needed in GENERIC.
[dragonfly.git] / tools / tools / mid / mid-build
1 #!/bin/sh
2 #
3 # Copyright (c) March 1998 Wolfram Schneider <wosch@FreeBSD.org>
4 #
5 # create an Message-ID, In-Reply-To look(1) index database
6 #
7
8
9 TMPDIR=/var/tmp; export TMPDIR
10 home=/g/www/mid
11
12 dbout=$home/index
13 archive=$home/archive
14
15 PATH=$home/bin:/bin:/usr/bin:/usr/local/bin; export PATH
16
17
18 all ()
19 {
20     ( cd $archive || exit 1
21       find text/* -type f | mid-master-index 4 mid-index $dbout/mid
22     )
23 }
24
25 current ()
26 {
27     ( cd $archive || exit 1
28     find current/freebsd-* current/cvs-* -type f | 
29         mid-master-index 1 mid-index $dbout/mid-current
30     )
31 }
32
33 if [ $# -le 0 ]; then
34         echo "usage mid-build {current|all}"
35         exit 1
36 fi
37
38 for db 
39 do
40         case $db in
41                 current) current;;
42                 all) all;;
43                 *) echo "Huh? $db";;
44         esac
45 done