Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (16 sloc) 0.461 kb
#!/usr/bin/env zsh
set -e
REL_FLACDIR="$1"; shift
REL_MP3DIR="$1"; shift
PREFIX="$(cd "$(dirname $0)"; pwd)"
FLACDIR="$(cd "$REL_FLACDIR"; pwd)"
MP3DIR="$(cd "$REL_MP3DIR"; pwd)"
cd "$FLACDIR"
for flacfile in **/*.flac ; do
MP3FILE="$MP3DIR/$(dirname "$flacfile")/$(basename "$flacfile" .flac).mp3"
mkdir -p "$(dirname "$MP3FILE")"
if ! "$PREFIX/flac2mp3.py" "$flacfile" "$MP3FILE" ; then
echo "Couldn't convert $flacfile"
exit 1
fi
done
Jump to Line
Something went wrong with that request. Please try again.