fix tar invocation and absolutise tarball path
Matt S Trout [Sat, 14 Jul 2012 21:12:17 +0000 (21:12 +0000)]
bin/ezpz-create-test-ezmlm-install

index b766352..e30ab57 100755 (executable)
@@ -8,7 +8,9 @@ use IPC::System::Simple qw(run);
 die "Usage: ezpz-create-test-ezmlm-install ezmlm-source.tgz build-dir install-dir"
   unless @ARGV == 3;
 
-my ($ezmlm_tarball, $build_dir_path, $install_to_path) = @ARGV;
+my ($ezmlm_tarball_path, $build_dir_path, $install_to_path) = @ARGV;
+
+my $ezmlm_tarball = io->file(io->file($ezmlm_tarball_path)->rel2abs);
 
 my $orig_cwd = io->dir(cwd);
 
@@ -18,7 +20,7 @@ my $install_to = io->dir(io->dir($install_to_path)->rel2abs);
 unless ($build_dir->exists) {
   $build_dir->mkpath;
   $build_dir->chdir;
-  run 'tar', '-xzf', $ezmlm_tarball;
+  run 'tar', 'xzf', $ezmlm_tarball;
   $orig_cwd->chdir;
 }