#! /bin/sh
# make directories for expire archiving
# $1 is overall archive dir, remaining args are successively deeper
# subdirectories under $1 (e.g. comp comp/lang comp/lang/c) (which may
# or may not already exist -- expire doesn't know or care).  Note, last
# argument therefore is slashed newsgroup name.

case $# in
0|1)	echo "Usage: $0 archdir subdir ..." >&2 ; exit 2 ;;
esac

cd $1
shift

for d
do
	if test ! -d "$d"
	then
		mkdir "$d" >/dev/null 2>/dev/null
	fi
done
