add lib finding to scripts
[scpubgit/App-EzPz.git] / bin / ezpz-admin-repl
CommitLineData
5b26866e 1#!/usr/bin/env perl
2
778d3118 3use lib (-d 'lib' ? ('lib') : ());
5b26866e 4use File::Which;
5use App::EzPz::UserStore;
6use strictures 1;
7
8die "Usage: ezpz-admin-repl ezmlm-bindir htpasswd-file"
9 unless @ARGV == 2;
10
11{
12 package Eval::WithLexicals::Scratchpad;
13
14 use vars qw($users);
15
16 $users = App::EzPz::UserStore->new(
17 ezmlm_bindir => $ARGV[0],
18 htpasswd_file => $ARGV[1],
19 );
20}
21
22do +which('tinyrepl');
23
24exit 0;