136252Swosch#!/bin/sh 236252Swosch# 336252Swosch# Copyright (c) March 1998 Wolfram Schneider <wosch@FreeBSD.org> 436252Swosch# 5108470Sschweikh# create a Message-ID, In-Reply-To look(1) index database 636252Swosch# 7108470Sschweikh# $FreeBSD$ 836252Swosch 936252Swosch 1036252SwoschTMPDIR=/var/tmp; export TMPDIR 1136252Swoschhome=/g/www/mid 1236252Swosch 1336252Swoschdbout=$home/index 1436252Swoscharchive=$home/archive 1536252Swosch 1636252SwoschPATH=$home/bin:/bin:/usr/bin:/usr/local/bin; export PATH 1736252Swosch 1836252Swosch 1936252Swoschall () 2036252Swosch{ 2136252Swosch ( cd $archive || exit 1 2236252Swosch find text/* -type f | mid-master-index 4 mid-index $dbout/mid 2336252Swosch ) 2436252Swosch} 2536252Swosch 2636252Swoschcurrent () 2736252Swosch{ 2836252Swosch ( cd $archive || exit 1 29108470Sschweikh find current/freebsd-* current/cvs-* -type f | 3036252Swosch mid-master-index 1 mid-index $dbout/mid-current 3136252Swosch ) 3236252Swosch} 3336252Swosch 3436252Swoschif [ $# -le 0 ]; then 3536252Swosch echo "usage mid-build {current|all}" 3636252Swosch exit 1 3736252Swoschfi 3836252Swosch 39108470Sschweikhfor db 4036252Swoschdo 4136252Swosch case $db in 4236252Swosch current) current;; 4336252Swosch all) all;; 4436252Swosch *) echo "Huh? $db";; 4536252Swosch esac 4636252Swoschdone 47