Update LZ4 to 1.8.3
[charm.git] / src / arch / win / gathertree.local
blob45d794de883f135fe619c216fb565e0193975871
1 #!/bin/bash
3 [ ! -d $1 ] && exit 0
4 [ ! -d $2 ] && mkdir $2
6 SYSLN='ln -s -f'
7 [ $OS = Windows_NT ] && SYSLN='ln -f'
9 pushd $1 > /dev/null
10 SRC=`pwd`
11 popd > /dev/null
13 pushd $2 > /dev/null
14 DST=`pwd`
15 popd > /dev/null
17 cd $SRC
18 for file in `find . -name CVS -prune -o -print`
20 if [ -d $file ]; then
21 mkdir -p $DST/$file
22 elif [ -f $file ]; then
23 $SYSLN $SRC/$file $DST/$file
25 done