well, it's a bit of an odd thing to want to do, so i doubt there's a nice way to do it officially. i did however write a script pretty similar last night actually!
Code:
cd "$1"
for i in *
do
if [ -d "$i" ]
then
newdirpath=`echo "$PWD/$i" | sed s/smb// | tr ' ' '_' | tr A-Z a-z | sed s/_-_/-/`
echo $newdirpath
mkdir "$newdirpath"
find "$PWD/$i" -iname '*.mp3' -fprint "$newdirpath"/mp3.m3u
/home/chris/clone "$i"
fi
done
cd -
it creates a replica of a directory tree with a winamp/xmms m3u file in every single directory of every mp3 in that directory, and recursive subdirectories. It also converts spaces to underscores and all letters to lower case.
I was gonna hack it around, and take out various bits.. but i think i'll leave that for you to do if you decide to!
oh, as it works recursively, the program IS /home/chris/clone... which obviosuly isn't right for you...
incidentally, if you wanna alter it to not create leaf-directories, i'd gladly accept the ocde back!