特定のlibをごにょって実行

#!/bin/bash

PRJ_ROOT=${PATH_TO_LIBS_DIR}
PERL=`which perl`
PERL_LIBS=()
LIB_PATH=''

function _init(){
    for DIR in `find ${PRJ_ROOT}/ -maxdepth 1 -mindepth 1 -type d -name '.git' -prune -o -type d -print`
    do
        PERL_LIBS=("${PERL_LIBS[@]}" " -Mlib=${DIR}/lib")
    done
    LIB_PATH="$(IFS=' '; echo "${PERL_LIBS[*]}")"
}

_init

${PERL} ${LIB_PATH} $@

exit 0
## END