#!/bin/sh
BASEPATH=$basepath
SYSOP=$msg_to
if [ -z $BASEPATH -o -z $SYSOP ]; then exit; fi
if [ -z $1 ]; then exit; fi
if [ -z $2 ]; then exit; fi
if [ -z $areas_file ]; then exit; fi
lowercase_name=`echo $1|tr A-Z a-z`
mkdir -p $BASEPATH/$lowercase_name
echo >>$areas_file
echo "Area $1">>$areas_file
if ! [ -z $newarea_desc ]; then
echo "Description $newarea_desc">>$areas_file
fi
echo "Path $BASEPATH/$lowercase_name">>$areas_file
echo "Links $2 $autoconnected_users">>$areas_file
echo "Options readonly">>$areas_file
if ! [ -z $newarea_group ] ; then
echo "Group $newarea_group">>$areas_file
fi
echo "Newfile $BASEPATH/new_files">>$areas_file
echo|mail -s "fileecho $1 autocreated by gtic" $SYSOP
syntax highlighted by Code2HTML, v. 0.9.1