]> git.phdru.name Git - audio-cdr-video.git/blob - audio/playlist2name.sh
Initail import
[audio-cdr-video.git] / audio / playlist2name.sh
1 #! /bin/sh
2
3 PATH=$HOME/lib/audio:$PATH
4 umask 022
5
6 if [ "$1" ]; then
7    cd "$1" || exit 1 # or just do it in current directory
8 fi
9 start_dir="`pwd`"
10
11 find . -type d -print |
12 while read dir; do
13    cd "$dir" || exit 1
14    [ -f PlayList.m3u ] && playlist2name.py PlayList.m3u
15    cd "$start_dir" || exit 1
16 done