summaryrefslogtreecommitdiffstats
path: root/perl-install/g_auto_install
blob: 24185b6ae0902e7bf4c8b51b84dff0fe2ce8e744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!../perl

my $dir = `pwd`;
chomp $dir;
$dir .= "/../../..";

$ENV{PERL5LIB} = join ":", map { "$dir/$_" } @INC;
$ENV{LD_LIBRARY_PATH} = "$dir/usr/lib";
$ENV{PATH} = join(":", map { "$dir/$_" } split ":", "/usr/bin:/bin:/sbin:/usr/sbin:/usr/X11R6/bin") . ":$ENV{PATH}";
$ENV{SHARE_PATH} = "$dir/usr/share";

exec "../perl", "./install2", "--g_auto_install", @ARGV or die;