use absolute method rather than messing around with rel2abs
[scpubgit/App-EzPz.git] / bin / ezpz-create-test-ezmlm-list
CommitLineData
bdab61a3 1#!/usr/bin/env perl
2
3use lib (-d 'lib' ? ('lib') : ());
4use IO::All;
5use IPC::System::Simple qw(run);
6use strictures 1;
7
8die "Usage: ezpz-create-test-ezmlm-list ezmlm-bindir list-base-dir list-name"
9 unless @ARGV == 3;
10
11my ($ezmlm_bin_path, $list_base_path, $list_name) = @ARGV;
12
6a99a8c7 13my $ezmlm_bin = io->dir($ezmlm_bin_path)->absolute;
bdab61a3 14
6a99a8c7 15my $list_base = io->dir($list_base_path)->absolute;
bdab61a3 16
17run(
18 $ezmlm_bin->catfile('ezmlm-make'),
19 $list_base->catdir($list_name),
20 $list_base->catfile("dot-qmail-for-${list_name}"),
21 $list_name,
22 'example.com'
23);