Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
use File::Glob qw(bsd_glob GLOB_ERR GLOB_BRACE GLOB_NOMAGIC);
use Cwd qw(realpath);
+our $base_path;
our %archmap = (
RPI => 'arm-unknown-linux-gnueabihf',
);
BEGIN {
$self = $0; $self =~ s{^.*/(?=.)}{};
my $deref = $0;
+ our $base_path;
while ($deref =~ m{^/}) {
my $link = readlink $deref;
if (!defined $link) {
or die "$self: checking our script location $deref: $!\n";
$deref =~ s{/[^/]+$}{}
or die "$self: unexpected script path: $deref\n";
+ $base_path = $deref;
unshift @INC, $deref."/TOML-Tiny/lib";
last;
}