#!/bin/sh

# Version 0.1

PATH=$PATH:`pwd`

. replaygain_functions.sh

# Check if exactly one directory was specified on command line
if [[ $# != 1 ]] ; then
    echo "Usage: `basename $0` <directory>" >&2
    exit 1
fi

check_environment "$1" # includes pushd, if it does not exit

find . -type d -exec replaygain_tag.sh "{}" \;

