set_soenv.in (bc6f66a4) set_soenv.in (a8693330)
1#!@PERL@ -w
2#
3###############################################################
4#
5# Licensed to the Apache Software Foundation (ASF) under one
6# or more contributor license agreements. See the NOTICE file
7# distributed with this work for additional information
8# regarding copyright ownership. The ASF licenses this file

--- 74 unchanged lines hidden (view full) ---

83#-------------------------------------------
84# IIc. Declaring the environment variables.
85#-------------------------------------------
86#
87# Help variables.
88my ( $USR, $ETC, $BIN, $LIB, $LIB64, $INC, $INCLUDE, $DEV, $OPT, $LOCAL, $SOLENV, $SOLVER, $CONFIG,
89 $USR_BIN, $USR_LIB, $USR_LOCAL, $USR_CCS, $JAVA_BIN, $JAVA_LIB, $JAVA_INCLUDE,
90 $SOLARENVINC, $USR_DT, $USR_OPENWIN, $XLIB, $XINC,
1#!@PERL@ -w
2#
3###############################################################
4#
5# Licensed to the Apache Software Foundation (ASF) under one
6# or more contributor license agreements. See the NOTICE file
7# distributed with this work for additional information
8# regarding copyright ownership. The ASF licenses this file

--- 74 unchanged lines hidden (view full) ---

83#-------------------------------------------
84# IIc. Declaring the environment variables.
85#-------------------------------------------
86#
87# Help variables.
88my ( $USR, $ETC, $BIN, $LIB, $LIB64, $INC, $INCLUDE, $DEV, $OPT, $LOCAL, $SOLENV, $SOLVER, $CONFIG,
89 $USR_BIN, $USR_LIB, $USR_LOCAL, $USR_CCS, $JAVA_BIN, $JAVA_LIB, $JAVA_INCLUDE,
90 $SOLARENVINC, $USR_DT, $USR_OPENWIN, $XLIB, $XINC,
91 $CYGWIN_PATH, $language, $dict, $ASM_PATH, $NSIS_PATH, $PERL_PATH );
91 $CYGWIN_PATH, $language, $dict, $ASM_PATH, $NASM_PATH, $NSIS_PATH, $PERL_PATH );
92
93# Environment variables.
94my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL,
95 $UPD, $WORK_STAMP, $SOURCE_ROOT_DIR , $gb_REPOS,
96 $SOLARSRC, $DEVROOT, $SOLARVER, $SOLARVERSION, $WORKDIR, $OUTDIR, $SOLARENV,
97 $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI,
98 $DMAKEROOT, $CLASSPATH, $XCLASSPATH, $COMPATH, $CXX_X64_BINARY, $LINK_X64_BINARY, $LIBMGR_X64_BINARY,
99 $MSPDB_PATH, $MIDL_PATH, $CSC_PATH, $MACOSX_DEPLOYMENT_TARGET, $MACOSX_SDK_PATH,

--- 800 unchanged lines hidden (view full) ---

900$OOO_SHELL = '@SHELLPATH@'."\/bash";
901}
902
903# ml.exe assembler path for Windows users.
904if ($platform =~ m/cygwin/)
905{ $ASM_PATH = PathFormat('@ASM_HOME@');
906}
907
92
93# Environment variables.
94my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL,
95 $UPD, $WORK_STAMP, $SOURCE_ROOT_DIR , $gb_REPOS,
96 $SOLARSRC, $DEVROOT, $SOLARVER, $SOLARVERSION, $WORKDIR, $OUTDIR, $SOLARENV,
97 $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI,
98 $DMAKEROOT, $CLASSPATH, $XCLASSPATH, $COMPATH, $CXX_X64_BINARY, $LINK_X64_BINARY, $LIBMGR_X64_BINARY,
99 $MSPDB_PATH, $MIDL_PATH, $CSC_PATH, $MACOSX_DEPLOYMENT_TARGET, $MACOSX_SDK_PATH,

--- 800 unchanged lines hidden (view full) ---

900$OOO_SHELL = '@SHELLPATH@'."\/bash";
901}
902
903# ml.exe assembler path for Windows users.
904if ($platform =~ m/cygwin/)
905{ $ASM_PATH = PathFormat('@ASM_HOME@');
906}
907
908# nasm.exe assembler path for Windows users.
909if ($platform =~ m/cygwin/)
910{ $NASM_PATH = PathFormat('@NASM_HOME@');
911}
912
908#
909# E. Determining the envionment values based on the information
910# that was gathered earlier on.
911#
912print "Setting the environment variables... ";
913$USR = $ds."usr";
914$ETC = $ds."etc";
915$BIN = $ds."bin";

--- 289 unchanged lines hidden (view full) ---

1205 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath\/bin)(?:[:]|\Z)/i ) {
1206 $PATH .= $ps.$tmppath.$BIN;
1207 }
1208 }
1209
1210 if ( $ASM_PATH ne "ASM_IN_PATH" )
1211 { $PATH .= $ps.CygFormat($ASM_PATH);
1212 }
913#
914# E. Determining the envionment values based on the information
915# that was gathered earlier on.
916#
917print "Setting the environment variables... ";
918$USR = $ds."usr";
919$ETC = $ds."etc";
920$BIN = $ds."bin";

--- 289 unchanged lines hidden (view full) ---

1210 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath\/bin)(?:[:]|\Z)/i ) {
1211 $PATH .= $ps.$tmppath.$BIN;
1212 }
1213 }
1214
1215 if ( $ASM_PATH ne "ASM_IN_PATH" )
1216 { $PATH .= $ps.CygFormat($ASM_PATH);
1217 }
1218 if ( $NASM_PATH ne "NASM_IN_PATH" && $NASM_PATH ne "NO_NASM_HOME" && $NASM_PATH ne "" )
1219 { $PATH .= $ps.CygFormat($NASM_PATH);
1220 }
1213 # zip.exe / unzip.exe path for Windows users.
1214 my $zip_home_path = PathFormat('@ZIP_HOME@');
1215 $tmppath = CygFormat($zip_home_path);
1216 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
1217 $PATH .= $ps.$tmppath;
1218 }
1219
1220 # Possible cygwin paths must follow behind the OOo and MS paths

--- 328 unchanged lines hidden (view full) ---

1549ToFile( "SRC_ROOT", $SRC_ROOT, "e" );
1550ToFile( "OOO_SHELL", $OOO_SHELL, "e" );
1551ToFile( "JAVA_HOME", $JAVA_HOME, "e" );
1552ToFile( "ANT_HOME", PathFormat("@ANT_HOME@"), "e" );
1553ToFile( "ANT_LIB", PathFormat("@ANT_LIB@"), "e" );
1554ToFile( "ANT", PathFormat("@ANT@"), "e" );
1555ToFile( "JDKLIB", $JAVA_LIB, "e" );
1556ToFile( "ASM_PATH", $ASM_PATH, "e" );
1221 # zip.exe / unzip.exe path for Windows users.
1222 my $zip_home_path = PathFormat('@ZIP_HOME@');
1223 $tmppath = CygFormat($zip_home_path);
1224 if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
1225 $PATH .= $ps.$tmppath;
1226 }
1227
1228 # Possible cygwin paths must follow behind the OOo and MS paths

--- 328 unchanged lines hidden (view full) ---

1557ToFile( "SRC_ROOT", $SRC_ROOT, "e" );
1558ToFile( "OOO_SHELL", $OOO_SHELL, "e" );
1559ToFile( "JAVA_HOME", $JAVA_HOME, "e" );
1560ToFile( "ANT_HOME", PathFormat("@ANT_HOME@"), "e" );
1561ToFile( "ANT_LIB", PathFormat("@ANT_LIB@"), "e" );
1562ToFile( "ANT", PathFormat("@ANT@"), "e" );
1563ToFile( "JDKLIB", $JAVA_LIB, "e" );
1564ToFile( "ASM_PATH", $ASM_PATH, "e" );
1565ToFile( "NASM_PATH", $NASM_PATH, "e" );
1557ToFile( "BUILD_SOSL", $BUILD_SOSL, "e" );
1558ToFile( "FRAMEWORKSHOME", $FRAMEWORKSHOME, "e" );
1559ToFile( "Empty", $empty, "n" );
1560
1561#
1562# Writing the platform independent constant values to file.
1563# (c = comment, e = environment variable, a = alias )
1564ToFile( "Platform independent constant values.", $empty, "c" );

--- 1108 unchanged lines hidden ---
1566ToFile( "BUILD_SOSL", $BUILD_SOSL, "e" );
1567ToFile( "FRAMEWORKSHOME", $FRAMEWORKSHOME, "e" );
1568ToFile( "Empty", $empty, "n" );
1569
1570#
1571# Writing the platform independent constant values to file.
1572# (c = comment, e = environment variable, a = alias )
1573ToFile( "Platform independent constant values.", $empty, "c" );

--- 1108 unchanged lines hidden ---