The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use inc::Module::Install;

$ENV{'WITH_SUBDIRS'} = 'sbin,lib,html';
RTx			('Shredder');
author			('Ruslan U. Zakirov <Ruslan.Zakirov@gmail.com>');
license			('perl');

requires		('RT', 3.4);

requires		('DBIx::SearchBuilder', 1.31);
requires		('Getopt::Long');
requires		('Exception::Class', 1.23);

build_requires		('DBD::SQLite');
build_requires		('Test::More');
build_requires		('Test::Deep');
build_requires		('File::Spec');
build_requires		('File::Path');
build_requires		('File::Copy');
build_requires		('Cwd');

my ($lp) = $INC{'RT.pm'} =~ /^(.*)[\\\/]/;
my $lib_path = join( ' ', "$RT::LocalPath/lib", $lp );
my $sbin_path = $RT::SbinPath || "$RT::BasePath/sbin" || "/opt/rt3/sbin";

substitute( { RT_LIB_PATH => $lib_path,
	      RT_SBIN_PATH => $sbin_path,
	    },
	    qw(sbin/rtx-shredder
	       sbin/rtx-validator
	       lib/RTx/Shredder.pm
	       t/utils.pl)
	  );

WriteAll();