#!	/bin/csh -f
#
# Copyright 1993, 1994, 1995 by the Regents of the University of California.
# see the file "Copyright" in the distribution for conditions of use.
#
#
#	kermit - up loading
#
#	binary/ascii from user - file name is not needed
#
echo " "
echo "Is this an ASCII or a binary file? "
retry:
echo -n 'Enter "a" for ASCII, "b" for binary, "q" to quit: '
set x = $<
set y = ( $x )
if( $#y == 0 || $#y > 1 ) set x = "ERR"
if( $x == "q" ) exit
if( $x == "a" || $x == "ascii" ) then
	set mode = "-r"
else if( $x == "b" || $x == "binary" ) then
	set mode = "-ir"
else
	echo '*** You must enter "a", "b", or "q".'
	echo " "
	goto retry
endif
#
if( -r ~/.kermrc ) then
	kermit $mode
else
	kermit -y $MENU_LIB/kermrc $mode
endif
