#! /bin/csh -f

if ($?WILLOW_MSG) then
	set NOMSG = $WILLOW_MSG
else
	set NOMSG = 0
endif

if ($1 == "-nomsg") then
	set NOMSG = 1
endif

#  Send User a warning message  if necessary
#
if (-e "$WGFILE" &&  $NOMSG == 0 ) then
   zwrite $USER > /dev/null << EOF
 
 A database has been added:

    The Avery Index to Architectural Periodicals

Please email problems to bug-library@mit.edu

@i(You can suppress this message by starting willow with the)
@i("-nomsg" option or by adding the following line to your .environment file:)
 
    setenv WILLOW_MSG 1
 
EOF
else if ( $NOMSG == 0 ) then
   cat << EOF
 
 A database has been added:

    The Avery Index to Architectural Periodicals

Please email problems to bug-library@mit.edu
 
==> You can suppress this message by starting willow with
the "-nomsg" option or by adding the following line
to your .environment file:
 
    setenv WILLOW_MSG 1

EOF
 
endif

setenv HOSTTYPE `machtype`
setenv XFILESEARCHPATH /mit/library/$HOSTTYPE/willow_23/%T/%N
exec /mit/library/$HOSTTYPE/willow_23/willow $*
