Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / bin / clone.csh
blob1c14e912d64e1a4c16cfae4a5b70dbe045c35ef7
1 #!/bin/csh
3 set src_root=`pwd`
4 set dst_root=`abspath $1`
6 set subdirs=`find * -type d -print`
8 mkdir $dst_root
9 set files=`find * \( -type d -prune \) -o -type f -print`
11 if ($#files) then
12 ln $files $dst_root
13 endif
15 if ($#subdirs) then
16 foreach subdir ($subdirs)
17 cd $src_root
18 mkdir $dst_root/$subdir
19 cd $src_root/$subdir
20 set files=`find * \( -type d -prune \) -o -type f -print`
21 if ($#files) then
22 ln $files $dst_root/$subdir
23 endif
24 end
25 endif
26 exit 0