source: main/trunk/gs-release-builder/envi/etc/tasks/snapshot/environment.pl@ 36342

Last change on this file since 36342 was 36342, checked in by kjdon, 2 months ago

some mods for 32 bit

File size: 1.9 KB
Line 
1$os_name = $^O;
2$bitness = 64; # change to 32 on 32 bit linux
3
4if ($os_name =~ "linux") {
5 my $home_dir = "/greenstone/gs-release-builder";
6 print "Running linux setup from $home_dir/envi/etc/tasks/snapshot/environment.pl\n";
7 #Where to keep snapshots
8 $ENV{'DATA_DIR'} = "$home_dir/snapshots";
9
10 #Where to find release kits
11 $ENV{'PATH'} = "$home_dir/release-kits/bin:$ENV{'PATH'}";
12
13 #Setting JAVA_HOME
14 $ENV{'JAVA_HOME'} = "$home_dir/packages/jdk1.8.0_301";
15
16 #Adding JAVA_HOME to PATH
17 $ENV{'PATH'} = "$ENV{'JAVA_HOME'}/bin:$ENV{'PATH'}";
18
19 if ($bitness == 32) {
20 print "32 bit\n";
21 $ENV{'LD_LIBRARY_PATH'} = "$ENV{'JAVA_HOME'}/jre/lib/i386/jli:$home_dir/packages/subversion/linux/lib:$ENV{'LD_LIBRARY_PATH'}";
22 # to force openssl to be 32 bit (otherwise it will test the machine, and be 64 bit)
23 $ENV{'GS_OPENSSL_HOST'} = "linux-generic32";
24 } else {
25 print "64bit\n";
26 $ENV{'LD_LIBRARY_PATH'} = "$ENV{'JAVA_HOME'}/jre/lib/amd64/jli:$home_dir/packages/subversion/linux/lib:$ENV{'LD_LIBRARY_PATH'}";
27 }
28 #PYTHON - 2.7+ needed to compile gnome-lib's glib-2.54.x
29 $ENV{'PATH'} = "$home_dir/packages/python2.7/bin:$ENV{'PATH'}";
30
31}
32
33if ($os_name =~ "MSWin32") {
34 my $home_dir = "C:\\greenstone\\gs-release-builder";
35 print "Running windows setup from envi\\bin\\tasks\\snapshot\\environment.pl\n";
36
37 # where to put shapshots
38 $ENV{'DATA_DIR'} = "$home_dir\\snapshots";
39
40 # where to find release kits
41 $ENV{'PATH'} = "$home_dir\\release-kits\\bin;$ENV{'PATH'}";
42
43 # this was on akapuka - what is it?
44 $ENV{'munges'} = "";
45
46}
47
48# common settings
49
50# setting javacflags - needed for release kit to target java classes
51$ENV{'JAVACFLAGS'} = "-source 1.8 -target 1.8";
52
53# Need to set -fPIC (for generating position independent code) among the CFLAGS
54# in order to get Expat to compile up on bedrock
55#$ENV{'CFLAGS'}="-fPIC $ENV{'CFLAGS'}";
56### do we need this??
57
58
Note: See TracBrowser for help on using the repository browser.