« ragetvgrab command line | MythAlarm » |
SRC="$1"
DST="$2"
for F in "$SRC"/.* "$SRC"/*
do # for every entry in the source directory
if [ $(basename "$F") != .svn ]
then # for everything that isn't an SVN directory
if [ -d "$F" ]
then # recursively copy subdirectories
mkdir "$DST"/$(basename "$F")
"$0" "$F" "$DST"
else # simple copy for files
cp -a "$F" "$DST"
fi
fi
done