#!/bin/sh
if [ $# != 2 ]; then
	echo "Usage: $0 <srcdir> <dstdir>" 2>&1
	echo "Recursively copies the ACLs from <srcdir> to <dstdir>/<srcdir>" 2>&1
	exit 1
fi
find "$1" -print | sed 's,.*,getfacl "&" | setfacl -f - "'"$2"'/&",' | sh

