#!/bin/csh 
#
# make symbolic links - allow moves of directories defined by 
# environmentals 
# 15-Mar-1994 (SLF)
#
# Calling Sequence:
#   mk_movelinks oldpath newpath
# Calling Example:
#   mk_movelinks /ydb/sfs /yd2/yohkoh_db/sfs
#
if ($#argv != 2) then
   echo "Calling Sequence:"
   echo mk_movelinks oldpath newpath
   echo mk_movelinks /ydb/sfs /yd2/yohkoh_db/sfs
   exit
endif
set oldpath=$1
set newpath=$2

set files=`/bin/ls $2`
foreach file ($files) 
   echo "ln -s $newpath/$file $oldpath/$file"
   ln -s $newpath/$file $oldpath/$file
end

