#!/bin/sh
#
# $Id: prepare.sh,v 1.2 1993/02/19 13:46:30 mike Exp $
#
# Prepare a target structure for general use. There are some things that
# packages shouldn't really set up themselves but which need doing.

target=$1

# Make any cat directories necessary.
if [ -d $1/man ]; then
	ls -d $1/man/man? | sed 's/man\(.\)$/cat\1/' | while read i
	do
		if [ ! -d $i ]; then
			mkdir $i
		fi
		chmod a=rwx,+t $i
	done
fi
