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