]> git.phdru.name Git - audio-cdr-video.git/blob - audio/mk_list_recursive.sh
Add `cat-playlists`
[audio-cdr-video.git] / audio / mk_list_recursive.sh
1 #! /bin/sh
2
3 . "`dirname \"$0\"`"/../set-path
4 umask 022
5
6 if [ "$1" ]; then
7    cd "$1" || exit 1
8    # or just do it in the current directory
9 fi
10
11 start_dir="`pwd`"
12 find . -type d -print |
13 while read dir; do
14    cd "$dir" || exit 1
15    rm -f PlayList.m3u
16    mk_list.py
17    [ -f PlayList.m3u ] && pwd
18    cd "$start_dir" || exit 1
19 done