#! /bin/csh

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
 
 This is a new version of @b[WILLOW].
 It should act pretty much the same as what you are used to.
 The online help has been carefully redone to document
 the current behavior.

 We have switched Medline providers.  Now we get Medline
 from the same source as First Search.  Instead of two
 years plus current we now get 1985 to the present.

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
 
 This is a new version of WILLOW.
 It should act pretty much the same as what you are used to.
 The online help has been carefully redone to document
 the current behavior.

 We have switched Medline providers.  Now we get Medline
 from the same source as First Search.  Instead of two
 years plus current we now get 1985 to the present.

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_2/%T/%N
exec /mit/library/$HOSTTYPE/willow_2/willow $*
