Last change
on this file since 36651 was 36651, checked in by kjdon, 19 months ago |
need a couple other perl bins in path for coll building. not sure if we need them here, but added in for completeness and I guess needed for diff coll, dec etc
|
File size:
1.4 KB
|
Line | |
---|
1 | $os_name = $^O;
|
---|
2 |
|
---|
3 | if ($os_name =~ "linux") {
|
---|
4 | my $home_dir = "/greenstone/gs-release-builder";
|
---|
5 | print "Running linux setup from $home_dir/envi/etc/environment.pl/n";
|
---|
6 |
|
---|
7 | $ENV{'ANT_HOME'} = "$home_dir/packages/apache-ant-1.9.4";
|
---|
8 | $ENV{'PATH'} = "$home_dir/packages/subversion/linux/bin:$ENV{'ANT_HOME'}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin";
|
---|
9 | $ENV{'LANG'} = "en_NZ.UTF-8";
|
---|
10 | $ENV{'SHELL'} = "bin/bash";
|
---|
11 | $ENV{'TERM'} = "xterm";
|
---|
12 | $ENV{'LC_ALL'} = "C";
|
---|
13 | }
|
---|
14 |
|
---|
15 | if ($os_name =~ "MSWin32") {
|
---|
16 | my $home_dir = "C:\\greenstone\\gs-release-builder";
|
---|
17 | print "Running windows setup from $home_dir\\envi\\etc\\environment.pl\n";
|
---|
18 | $ENV{'JAVA_HOME'} = "$home_dir\\packages\\jdk8.0.302";
|
---|
19 | $ENV{'ANT_HOME'} = "$home_dir\\packages\\apache-ant-1.9.5";
|
---|
20 | $ENV{'_PERL_TOPLEVEL'} = "$home_dir\\packages\\strawberry-perl-5.18";
|
---|
21 | $ENV{'PERL_HOME'} = "$home_dir\\packages\\strawberry-perl-5.18\\perl";
|
---|
22 | # path: add in java, ant, perl, svn, system32 for tar
|
---|
23 | $ENV{'PATH'} = "$ENV{'JAVA_HOME'}\\bin;$ENV{'ANT_HOME'}\\bin;$ENV{'PERL_HOME'}\\bin;$ENV{'PERL_HOME'}\\site\\bin;$ENV{'_PERL_TOPLEVEL'}\\c\\bin;C:\\Program Files (x86)\\Subversion\\bin;C:\\Windows\\System32"; # do we need putty now we are not uploading in rk? ;C:\\Program Files\\PuTTY";
|
---|
24 |
|
---|
25 | source_batch_script("C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsamd64_x86.bat");
|
---|
26 |
|
---|
27 |
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.