#! /bin/sh
# @(#) getmap.sh,v 1.6 1992/07/11 11:39:55 tron Exp
#
#    Copyright (C) 1988 Ronald S. Karr and Landon Curt Noll
#    Copyright (C) 1992 Ronald S. Karr
#
# See the file COPYING, distributed with smail, for restriction
# and warranty information.

# getmap - unshar usenet map articles into the UNSHAR_MAP_DIR directory
#
# usage: getmap [-m mapdir] [-w workdir] [-b batchfile] [-u username]
#
#	 -m mapdir	- 'mapdir' is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where maps are unpacked,
#			 is where m