Commit | Line | Data |
---|---|---|
583b7e4a MW |
1 | #! /bin/sh -e |
2 | ||
3 | dir=none | |
4 | find /mnt/jb/master -type f -print | sort | while read line; do | |
5 | ok=t | |
6 | case "$line" in "$dir"/*/*) ;; "$dir"/*) continue ;; esac | |
7 | case "$line" in | |
8 | *.flac) | |
9 | if ! metaflac --list "$line" | grep -iq replaygain; then | |
10 | ok=nil | |
11 | fi | |
12 | ;; | |
13 | *.ogg) | |
14 | if ! vorbiscomment -l "$line" | grep -iq replaygain; then | |
15 | ok=nil | |
16 | fi | |
17 | ;; | |
18 | *.mp3) | |
19 | if ! mp3gain -s i -s c "$line" | grep -q "mp3 gain change"; then | |
20 | ok=nil | |
21 | fi | |
22 | ;; | |
23 | esac | |
24 | case $ok in | |
25 | nil) | |
26 | dir=${line%/*} | |
27 | echo "$dir" | |
28 | ;; | |
29 | esac | |
30 | done |