-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild
executable file
·39 lines (31 loc) · 1.1 KB
/
Build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!perl
use strict;
use Cwd;
use File::Spec;
BEGIN {
$^W = 1; # Use warnings
my $curdir = File::Spec->canonpath( Cwd::cwd() );
my $is_same_dir = $^O eq 'MSWin32' ? (Win32::GetShortPathName($curdir) eq 'D:\\lib\\svn\\Psy\\trunk')
: ($curdir eq 'D:\\lib\\svn\\Psy\\trunk');
unless ($is_same_dir) {
die ('This script must be run from D:\\lib\\svn\\Psy\\trunk, not '.$curdir."\n".
"Please re-run the Build.PL script here.\n");
}
unshift @INC,
(
);
}
use Module::Build;
# Some platforms have problems setting $^X in shebang contexts, fix it up here
$^X = Module::Build->find_perl_interpreter
unless File::Spec->file_name_is_absolute($^X);
if (-e 'Build.PL' and not Module::Build->up_to_date("Build.PL", $0)) {
warn "Warning: Build.PL has been altered. You may need to run 'perl Build.PL' again.\n";
}
# This should have just enough arguments to be able to bootstrap the rest.
my $build = Module::Build->resume (
properties => {
config_dir => 'D:\\lib\\svn\\Psy\\trunk\\_build',
},
);
$build->dispatch;