#! /bin/sh
# with cwd in a tla-managed working directory export managed files 
# to a directory ($1)
#

d=$1
test "$d" || exit 1

for f in `tla inventory --names --source`; do 
	n=$d/$f
	mkdir -p `dirname $n`
	cp $f $n
done
