config root man

Current Path : /usr/src/tools/tools/mid/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/tools/tools/mid/mid-build

#!/bin/sh
#
# Copyright (c) March 1998 Wolfram Schneider <wosch@FreeBSD.org>
#
# create a Message-ID, In-Reply-To look(1) index database
#
# $FreeBSD: release/9.1.0/tools/tools/mid/mid-build 108470 2002-12-30 21:18:15Z schweikh $


TMPDIR=/var/tmp; export TMPDIR
home=/g/www/mid

dbout=$home/index
archive=$home/archive

PATH=$home/bin:/bin:/usr/bin:/usr/local/bin; export PATH


all ()
{
    ( cd $archive || exit 1
      find text/* -type f | mid-master-index 4 mid-index $dbout/mid
    )
}

current ()
{
    ( cd $archive || exit 1
    find current/freebsd-* current/cvs-* -type f |
	mid-master-index 1 mid-index $dbout/mid-current
    )
}

if [ $# -le 0 ]; then
	echo "usage mid-build {current|all}"
	exit 1
fi

for db
do
	case $db in
		current) current;;
		all) all;;
		*) echo "Huh? $db";;
	esac
done

Man Man