#!/bin/bash

if [ "$#" == "0" ]; then
	echo
	echo Usage:
	echo -e \\t$0 \"Name of the entry\" "   dir1   dir2   dir3" ...
	echo
	echo -e \\t\"Name of the entry\" may be the name of the CD like
	echo -e \\t\"MP3 Singles 1\" or maybe \"OnHardDisk\"
	echo
	echo -e \\tIf you do not specify a directory your current working directory
	echo -e \\tis searched.
	echo
	exit 1;
fi

cdname="$1"
shift

find $* -type f -iname "*.mp3" | mp3save.pl "$cdname"
