#!/bin/csh -f
#
# move - move a directory to another place, and make a link to it
#
set usage='usage: move currentdir place,   which makes place/currentdir'
#
# this is a little risky, because if cpdir fails, it doesn't always
# exit with a 'failure' status.
#
# Part of
#              The STARFISH Parallel file-system simulator
#        (Simulation Tool for Advanced Research in File Systems)
# 
#                               David Kotz
#                           Dartmouth College
#                              Version 3.0
#                              October 1996
#                          dfk@cs.dartmouth.edu

cpdir $1 $2  && /bin/rm -rf $1 && ln -s $2/$1 $1
