#!/bin/bash rootpath=$(cd `dirname $0` && pwd) libpaths=`cat $rootpath/local/config/perl/relative-libs-5.34.1-x86_64-linux-thread-multi.txt 2> /dev/null | perl -MCwd=abs_path -e '$p = abs_path shift; local $/ = undef; print join q{:}, map { $p . q{/} . $_ } split /:/, <>' "$rootpath"` PMBP_ORIG_PATH="${PMBP_ORIG_PATH:-$PATH}" PATH="$rootpath/local/perlbrew/perls/perl-5.34.1/bin:$rootpath/local/perl-5.34.1/pm/bin:$rootpath/local/common/bin:$rootpath/local/mecab-github-utf-8/bin:${PMBP_ORIG_PATH:-$PATH}" PERL5LIB="$libpaths" LD_LIBRARY_PATH="$rootpath/local/perl-5.34.1/pm/lib:$rootpath/local/common/lib:$rootpath/local/mecab-github-utf-8/lib:$LD_LIBRARY_PATH" exec "perl" "modules/twiggy-packed/script/plackup" "$@"