Fix parallel build of examples/charm++/user-driven-interop
[charm.git] / src / scripts / gatherflat
blob1d3f0d64c0b2c6c6df21ae8dcf2bc0fe6b4c95b6
1 #!/bin/sh
3 [ -x ./gatherflat.local ] && exec ./gatherflat.local $@
5 if [ -d $1 ] ; then
7 SRC=$1
8 DST=$2
10 rm -f temp.f temp.l
11 if [ ! -d $DST ] ; then mkdir $DST ; fi
12 (cd $SRC ; find . -name CVS -prune -o -type f -print)|sed -e s@.@@>temp.f
13 awk '{print "./system_ln '$SRC'"$1" '$DST'";}' < temp.f > temp.l
14 sh temp.l
15 rm -f temp.d temp.l