Debian Codegraph @

checkflac

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 #!/bin/sh
2
3 CDROM=/dev/hdc
4
5 if [ $# = "1" ]
6 then
7 FILENAME="$1"
8
9 CDID=`discid $CDROM`
10 FLACID=`flactag --discid $FILENAME | cut -d':' -f 2| cut -d' ' -f 2`
11
12 if [ "$FLACID" != "$CDID" ]
13 then
14 echo "**********"
15 echo "**********"
16 echo "**********"
17 echo "********** Disc ID of FLAC doesn't match Disc ID of CD **********"
18 echo "********** Please re-rip this CD and remove any invalid **********"
19 echo "********** disc IDs from the MusicBrainz service **********"
20 echo "**********"
21 echo "**********"
22 echo "**********"
23 else
24 echo "IDs match, disk is OK"
25 fi
26 else
27 echo "Usage: $0 flacfile"
28 fi
29
30