source: other-projects/nightly-tasks/diffcol/trunk/environment.pl@ 39017

Last change on this file since 39017 was 38094, checked in by anupama, 9 months ago

Updated envi diffcol level environment.pl for windows.

File size: 1.8 KB
Line 
1$os_name = $^O;
2
3if ($os_name =~ "linux") {
4 $ENV{'IDENTITY_DIR'} = "/root/.ssh";
5 $ENV{'munges'} = "";
6 $ENV{'TASK_HOME'} = "/greenstone/diffcol"; # "/greenstone/envi/etc/tasks/diffcol";
7}
8
9if ($os_name =~ "MSWin32") {
10 my $home_dir = "C:\\greenstone\\gs-release-builder";
11
12 #diffcol Win environment
13 $ENV{'IDENTITY_DIR'} = "$home_dir\\keys";
14 $ENV{'munges'} = "";
15 $ENV{'TASK_HOME'} = "$home_dir\\diffcol";
16 #$ENV{'GSDLHOME'} = "$ENV{'TASK_HOME'}\\greenstone2" unless defined $ENV{'GSDLHOME'};
17
18 # need the correct perl on the PATH in order to be able to run import.pl from within diffcol\task.pl via envi
19 # (else calling 'envi.pl diffcol run_test' used to fail on the first GS script, import)
20 ##$ENV{'PERLPATH'}="C:\\Perl64\\bin";
21 #$ENV{'PATH'}="C:\\Perl64\\bin;$ENV{'PATH'}";
22
23 #$ENV{'ANT_HOME'}="C:\\Users\\GameJam\\apache-ant-1.9.5";
24 #$ENV{'JAVA_HOME'}="C:\\Program Files\\Java\\jdk1.8.0_191";
25 #$ENV{'PATH'}="$home_dir\\strawberry-perl32no64\\perl\\bin;$ENV{'ANT_HOME'}\\bin;$ENV{'JAVA_HOME'}\\bin;C:\\Program Files\\SlikSvn\\bin;$ENV{'PATH'}";
26
27 # Need path to UNIXtools/linux utilities and must have GS3/gs2build/bin/windows' wget in there and wgetrc file
28 # https://unxutils.sourceforge.net/
29 # ( https://gnuwin32.sourceforge.net/packages/coreutils.htm )
30
31 $ENV{'PATH'}="$home_dir\\UnxUpdates;$ENV{'PATH'}";
32}
33
34if ($os_name =~ "darwin") {
35 $ENV{'IDENTITY_DIR'} = "/Users/greenstone/.ssh";
36 $ENV{'munges'} = "";
37 $ENV{'TASK_HOME'} = "/Users/greenstone/RELEASES/diffcol";
38
39 $ENV{'ANT_HOME'} = "$ENV{'RELEASES_DIR'}/ant-1.9.4";
40
41 #$ENV{'JRE_HOME'} = "$ENV{RELEASES_DIR}/JDK8u301/Home/jre";
42 #$ENV{'PATH'} = "$ENV{'PATH'}:$ENV{'JRE_HOME'}/bin:$ENV{'ANT_HOME'}/bin";
43 $ENV{'PATH'} = "$ENV{'ANT_HOME'}/bin:$ENV{'PATH'}";
44}
Note: See TracBrowser for help on using the repository browser.