#!/bin/bash
# encode_all encodes the whole library into specified format
#
ulimit -n "$(ulimit -Hn)"
. env_parallel.bash
function ts() {
date '+%Y-%m-%d_%H:%M'
}
debug_only=false
# debug_only=true
src_dir="$1"
export output_dir="$2"
if [[ -z "$src_dir" || -z "$output_dir" ]]; then
printf 'Usage:\nencode_dir