#!	/bin/csh -f
#
#	Install everything
#
set ucl = /usr/local/uclink
set etc = $ucl/menu2.0/etc
set bin = $ucl/bin
set menu_dir = $ucl/menu2.0
#
if( ! -e $menu_dir ) /bin/mkdir $menu_dir
#
if( $#argv == 1 ) then
	if( $1 == help ) then
		echo "*** just installing help files"
		/bin/cp -rp etc/help $etc
		/usr/ucb/rcp -rp $etc/help uclink2:$etc
		exit
	endif
endif
#
#	copy config file, intro text files, help files
/bin/cp -rp etc $menu_dir
#	copy shell scripts
/bin/cp -rp lib $menu_dir
#	copy start/stop logging scripts
if( ! -e $menu_dir/logs ) /bin/mkdir $menu_dir/logs
cd logs
/usr/bin/install -c Start_logging $menu_dir/logs
/usr/bin/install -c Stop_logging $menu_dir/logs
cd ..
#
cd src
make install
#
#	now for UCLink2
#
/usr/ucb/rcp -rp $ucl/menu2.0 uclink2:$ucl
/usr/ucb/rcp -rp $bin/menu2.0 uclink2:$bin
