#! /bin/csh -f


if ( $#argv == 0 ) then
  if ( -e '/bin/arch' ) then
    set l = 's'
  else
    set l = 'd'                         # Solaris 2
  endif
else
  set l = $1
endif

if ( $l != 's' && $l != 'd' ) then
  echo 'Usage: mkln { s | d }'
  exit 1
endif

rm fli tree

ln -s xed fli
ln -s xed tree

# set a = $cwd

# foreach ff ( cbin/linux mbin/linux sbin/linux xbin/linux)
#   if ( -e $a/$ff ) then
#     cd $a/$ff
#     $a/mkln1 $l
#   endif
# end

ls -Ftla cbin/linux mbin/linux
