#! /bin/csh -f
# C. Oei
set path = ( /usr/ucb /bin /usr/bin )
set SRC = /NextApps/Mail.app
set DEST = ${1}
set x = $0
set APPDIR = $x:h
mkdirs $DEST
chdir $SRC
foreach i (*)
    if ("$i" == "MailFetch") then
	ln -s "$SRC/$i" "$DEST/MailFetch-0"
    else
	ln -s "$SRC/$i" "$DEST"
    endif
end
chdir $APPDIR
cp PriorityMailFetch "$DEST"/MailFetch
cp installPrioritySendmail/PriorityMailSendmail* "$DEST"
chmod 555 "$DEST"/PriorityMailSendmail*
