server/dep/ACE_wrappers/bin/clone.csh
cipherCOM 571f510ee4 [11162] Changed ACE lib to same version but with configure script
(based on cipherCOM's repo commit d3d8934)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-14 12:51:16 +03:00

26 lines
464 B
Tcsh

#!/bin/csh
set src_root=`pwd`
set dst_root=`abspath $1`
set subdirs=`find * -type d -print`
mkdir $dst_root
set files=`find * \( -type d -prune \) -o -type f -print`
if ($#files) then
ln $files $dst_root
endif
if ($#subdirs) then
foreach subdir ($subdirs)
cd $src_root
mkdir $dst_root/$subdir
cd $src_root/$subdir
set files=`find * \( -type d -prune \) -o -type f -print`
if ($#files) then
ln $files $dst_root/$subdir
endif
end
endif
exit 0