Scripts for ripping music CDs and doing metadata
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
423 B

#!/bin/sh
usage() {
echo "Usage: $0 [ home | lib ]"
}
if [ x$1 = x ]; then
usage
exit 1
fi
progdir=`dirname $0`
prognam=`basename $0`
if [ "x$progdir" = "x" ]; then progdir="." ; fi
cd "${progdir}/.."
if [ ! -x rip/makelinks.$1 ]; then
usage
exit 1
fi
echo 'rm -rf /var/lib/mythtv/music/*'
for f in *
do
if [ $f != rip -a $f != lyrics ]; then
find $f -type f -exec rip/makelinks.$1 '{}' \;
fi
done