#!/bin/sh -e # Recursively add replaygain to the given files or from the current directory nice -n 8 rsgain easy --skip-existing --multithread=${SPARE_CORES:-3} "${@:-.}" #test $# -eq 0 && nice -n 8 beet replaygain --album --threads=${SPARE_CORES:-3} --write "$@" # Need a find command, call for each album #rsgain custom --album --skip-existing --tagmode=i "${@:-${MUSIC:-.}}"