Kaydet (Commit) c3ab3df9 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

Renamed OpenOffice.org into LibreOffice in configure scripts

üst f5c1fef0
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# Description: # Description:
# set_soenv generates a file that contains all necessary # set_soenv generates a file that contains all necessary
# environment variables for the build proces of OpenOffice # environment variables for the build proces of OpenOffice
# on Linux, NetBSD, Solaris, Windows NT and Mac OS X/Darwin. # on Linux, NetBSD, Solaris, Windows NT and Mac OS X/Darwin.
# #
...@@ -42,7 +42,7 @@ my ( $outfile, $outfile_sh, $bootfile, $newline, $comment, ...@@ -42,7 +42,7 @@ my ( $outfile, $outfile_sh, $bootfile, $newline, $comment,
$compiler, $unsetenv, $setenv, $unset, $set, $ds, $ps, $compiler, $unsetenv, $setenv, $unset, $set, $ds, $ps,
$wps, $cur_dir, $par_dir, $I, $L, $D, $buildenv, $answer, $tmp, $MINGW, $wps, $cur_dir, $par_dir, $I, $L, $D, $buildenv, $answer, $tmp, $MINGW,
$USE_MINGW, $platform, $USE_MINGW, $platform,
$cygwinver, $empty, $no_ant, $no_stl, $no_gcc_include, $cygwinver, $empty, $no_ant, $no_stl, $no_gcc_include,
$no_gxx_include, $warnfile, $Warning, $result, $unsetvars, $unsetvarssh, $unsetvarsbat, $exportvars, $win_format_var, $perl_os, @mingw_lib_include_paths, $mingw_lib_include_path); $no_gxx_include, $warnfile, $Warning, $result, $unsetvars, $unsetvarssh, $unsetvarsbat, $exportvars, $win_format_var, $perl_os, @mingw_lib_include_paths, $mingw_lib_include_path);
# #
#------------------------------------------------- #-------------------------------------------------
...@@ -51,11 +51,11 @@ my ( $outfile, $outfile_sh, $bootfile, $newline, $comment, ...@@ -51,11 +51,11 @@ my ( $outfile, $outfile_sh, $bootfile, $newline, $comment,
# #
# Platform independent constant values. # Platform independent constant values.
my @DICTIONARIES = ("DADK", "DEDE", "ENGB", "ENUS", "HUHU", "ITIT", "RURU", "THTH", "SWTZ" ); my @DICTIONARIES = ("DADK", "DEDE", "ENGB", "ENUS", "HUHU", "ITIT", "RURU", "THTH", "SWTZ" );
my ( $CALL_CDECL, $COMMON_OUTDIR, $BMP_WRITES_FLAG, my ( $CALL_CDECL, $COMMON_OUTDIR, $BMP_WRITES_FLAG,
$common_build, $NO_REC_RES, $SO3, $SOLAR_JAVA, $common_build, $NO_REC_RES, $SO3, $SOLAR_JAVA,
$SOLAR_PLUGIN, $UPDATER, $BUILD_DELIVER, $VCL, $SOLAR_PLUGIN, $UPDATER, $BUILD_DELIVER, $VCL,
$CC, $CXX, $CC, $CXX,
$BUILD_SOSL, $ENABLEUNICODE, $NEW_JAR_PACK, $NO_BSYMBOLIC, $BUILD_SOSL, $ENABLEUNICODE, $NEW_JAR_PACK, $NO_BSYMBOLIC,
$BUILD_SOSL_RELEASE, $RSC_ONCE ); $BUILD_SOSL_RELEASE, $RSC_ONCE );
# #
# Platform dependent constant values. # Platform dependent constant values.
...@@ -80,12 +80,12 @@ my ( $USR, $ETC, $BIN, $LIB, $LIB64, $INC, $INCLUDE, $DEV, $OPT, $LOCAL, $SOLENV ...@@ -80,12 +80,12 @@ my ( $USR, $ETC, $BIN, $LIB, $LIB64, $INC, $INCLUDE, $DEV, $OPT, $LOCAL, $SOLENV
my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL, my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL,
$UPD, $WORK_STAMP, $SOURCE_ROOT_DIR , $UPD, $WORK_STAMP, $SOURCE_ROOT_DIR ,
$SOLARSRC, $DEVROOT, $SOLARVER, $SOLARVERSION, $SOLARENV, $SOLARDEFIMG, $SOLARSRC, $DEVROOT, $SOLARVER, $SOLARVERSION, $SOLARENV, $SOLARDEFIMG,
$STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI, $STAR_INIROOT, $STAR_INIROOTOLD, $STAR_STANDLST, $STAR_SSCOMMON, $STAR_SSOLARINI,
$DMAKEROOT, $CLASSPATH, $XCLASSPATH, $COMPATH, $DMAKEROOT, $CLASSPATH, $XCLASSPATH, $COMPATH,
$MSPDB_PATH, $MIDL_PATH, $CSC_PATH, $MSPDB_PATH, $MIDL_PATH, $CSC_PATH,
$PATH, $SOLAREXTRAINC, $SOLAREXTRALIB, $SOLARLIB, $PATH, $SOLAREXTRAINC, $SOLAREXTRALIB, $SOLARLIB,
$SOLARINC, $LOCALINI, $FRAMEWORKSHOME, $COMEX, $PERL, $SOLARINC, $LOCALINI, $FRAMEWORKSHOME, $COMEX, $PERL,
$COMP_ENV, $ILIB, $JAVAHOME, $PSDK_HOME, $DIRECTXSDK_LIB, $USE_NEW_SDK, $FRAME_HOME, $COMP_ENV, $ILIB, $JAVAHOME, $PSDK_HOME, $DIRECTXSDK_LIB, $USE_NEW_SDK, $FRAME_HOME,
$USE_DIRECTX5, $ATL_LIB, $ATL_INCLUDE, $MFC_LIB, $MFC_INCLUDE, $NO_HIDS, $TMPDIR, $USE_DIRECTX5, $ATL_LIB, $ATL_INCLUDE, $MFC_LIB, $MFC_INCLUDE, $NO_HIDS, $TMPDIR,
$COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS, $COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS,
$WIN_GNUCOPY, $WIN_TOUCH, $STLPORT4, $MOZILLA_VERSION, $MOZILLA_TOOLKIT, $PREBUILD_MOZAB, $MOZILLABUILD, $WIN_GNUCOPY, $WIN_TOUCH, $STLPORT4, $MOZILLA_VERSION, $MOZILLA_TOOLKIT, $PREBUILD_MOZAB, $MOZILLABUILD,
...@@ -155,7 +155,7 @@ $EPM_FLAGS = ""; ...@@ -155,7 +155,7 @@ $EPM_FLAGS = "";
# , $Warning. # , $Warning.
AddWarning( "configure", "" ); AddWarning( "configure", "" );
# #
print ("Setting up the environment for building OpenOffice.org $newline"); print ("Setting up the environment for building LibreOffice $newline");
# #
#-------------------------------------------------- #--------------------------------------------------
# V. Setting the environment variables/values. # V. Setting the environment variables/values.
...@@ -178,7 +178,7 @@ chomp( $oldPATH ); # cut off new line ...@@ -178,7 +178,7 @@ chomp( $oldPATH ); # cut off new line
# #
# Setting platform independent constant values. # Setting platform independent constant values.
print "Setting platform independent values... "; print "Setting platform independent values... ";
# NB: Language options now set at 'ToFile' stage. # NB: Language options now set at 'ToFile' stage.
$BMP_WRITES_FLAG = "TRUE"; $BMP_WRITES_FLAG = "TRUE";
$BUILD_SOSL_RELEASE = "TRUE"; $BUILD_SOSL_RELEASE = "TRUE";
$RSC_ONCE = "TRUE"; $RSC_ONCE = "TRUE";
...@@ -200,10 +200,10 @@ $comment = "#"; # UNIX script comment character ...@@ -200,10 +200,10 @@ $comment = "#"; # UNIX script comment character
$TARFILE_LOCATION = "@TARFILE_LOCATION@"; # where to find tarballs with external sources $TARFILE_LOCATION = "@TARFILE_LOCATION@"; # where to find tarballs with external sources
# Setting platform dependent constant values. # Setting platform dependent constant values.
if ( $platform =~ m/solaris/ ) if ( $platform =~ m/solaris/ )
{ print "Setting Solaris specific values... "; { print "Setting Solaris specific values... ";
if ($platform =~ m/^i[3456]86/) if ($platform =~ m/^i[3456]86/)
{ {
if ( $CC =~ "gcc") { if ( $CC =~ "gcc") {
$outfile = "SolarisX86GccEnv.Set"; $outfile = "SolarisX86GccEnv.Set";
$OUTPATH = "unxsogi"; $OUTPATH = "unxsogi";
...@@ -221,10 +221,10 @@ if ( $platform =~ m/solaris/ ) ...@@ -221,10 +221,10 @@ if ( $platform =~ m/solaris/ )
else else
{ {
if ( $CC =~ "gcc") { if ( $CC =~ "gcc") {
$outfile = "SolarisSparcGccEnv.Set"; $outfile = "SolarisSparcGccEnv.Set";
$OUTPATH = "unxsogs"; $OUTPATH = "unxsogs";
} else { } else {
$outfile = "SolarisSparcEnv.Set"; $outfile = "SolarisSparcEnv.Set";
$OUTPATH = "unxsols4"; $OUTPATH = "unxsols4";
} }
$CPU = "S"; $CPU = "S";
...@@ -243,7 +243,7 @@ if ( $platform =~ m/solaris/ ) ...@@ -243,7 +243,7 @@ if ( $platform =~ m/solaris/ )
$COMEX = 4; $COMEX = 4;
} }
$BIG_SVX = "TRUE"; $BIG_SVX = "TRUE";
$COMPATH = '@COMPATH@'; $COMPATH = '@COMPATH@';
$GUI = "UNX"; $GUI = "UNX";
$GUIBASE = "unx"; $GUIBASE = "unx";
$GVER = "VCL"; $GVER = "VCL";
...@@ -251,12 +251,12 @@ if ( $platform =~ m/solaris/ ) ...@@ -251,12 +251,12 @@ if ( $platform =~ m/solaris/ )
$OS = "SOLARIS"; $OS = "SOLARIS";
$PATH_SEPERATOR = $ps; $PATH_SEPERATOR = $ps;
} }
elsif ( $platform =~ m/netbsd/ ) elsif ( $platform =~ m/netbsd/ )
{ {
#Set platform specific values: #Set platform specific values:
if ($platform =~ m/^i[3456]86/) if ($platform =~ m/^i[3456]86/)
{ print "Setting NetBSD x86 specific values... "; { print "Setting NetBSD x86 specific values... ";
$outfile = "NetBSDX86Env.Set"; $outfile = "NetBSDX86Env.Set";
$CPU = "I"; $CPU = "I";
$CPUNAME = "INTEL"; $CPUNAME = "INTEL";
$OUTPATH = "unxbsdi"; $OUTPATH = "unxbsdi";
...@@ -266,7 +266,7 @@ elsif ( $platform =~ m/netbsd/ ) ...@@ -266,7 +266,7 @@ elsif ( $platform =~ m/netbsd/ )
} }
elsif ($platform =~ m/^sparc/) elsif ($platform =~ m/^sparc/)
{ print "Setting NetBSD Sparc specific values... "; { print "Setting NetBSD Sparc specific values... ";
$outfile = "NetBSDSparcEnv.Set"; $outfile = "NetBSDSparcEnv.Set";
$CPU = "S"; $CPU = "S";
$CPUNAME = "SPARC"; $CPUNAME = "SPARC";
$OUTPATH = "unxbsds"; $OUTPATH = "unxbsds";
...@@ -276,7 +276,7 @@ elsif ( $platform =~ m/netbsd/ ) ...@@ -276,7 +276,7 @@ elsif ( $platform =~ m/netbsd/ )
} }
elsif ($platform =~ m/powerpc/) elsif ($platform =~ m/powerpc/)
{ print "Setting NetBSD PPC specific values... "; { print "Setting NetBSD PPC specific values... ";
$outfile = "NetBSDPPCEnv.Set"; $outfile = "NetBSDPPCEnv.Set";
$CPU = "P"; $CPU = "P";
$CPUNAME = "POWERPC"; $CPUNAME = "POWERPC";
$OUTPATH = "unxbsdppc"; $OUTPATH = "unxbsdppc";
...@@ -294,7 +294,7 @@ elsif ( $platform =~ m/netbsd/ ) ...@@ -294,7 +294,7 @@ elsif ( $platform =~ m/netbsd/ )
# General NetBSD settings: # General NetBSD settings:
$BIG_SVX = "TRUE"; $BIG_SVX = "TRUE";
$COM = "GCC"; $COM = "GCC";
$COMPATH = '@COMPATH@'; $COMPATH = '@COMPATH@';
$GUI = "UNX"; $GUI = "UNX";
$GUIBASE = "unx"; $GUIBASE = "unx";
$GVER = "VCL"; $GVER = "VCL";
...@@ -302,13 +302,13 @@ elsif ( $platform =~ m/netbsd/ ) ...@@ -302,13 +302,13 @@ elsif ( $platform =~ m/netbsd/ )
$OS = "NETBSD"; $OS = "NETBSD";
$PATH_SEPERATOR = $ps; $PATH_SEPERATOR = $ps;
} }
elsif ( $platform =~ m/kfreebsd/ ) elsif ( $platform =~ m/kfreebsd/ )
{ {
# General GNU/kFreeBSD settings: # General GNU/kFreeBSD settings:
$CVER = "C341"; $CVER = "C341";
$BIG_SVX = "TRUE"; $BIG_SVX = "TRUE";
$COM = "GCC"; $COM = "GCC";
$COMPATH = '@COMPATH@'; $COMPATH = '@COMPATH@';
$GLIBC = "2REDHAT60"; $GLIBC = "2REDHAT60";
$GUI = "UNX"; $GUI = "UNX";
$GUIBASE = "unx"; $GUIBASE = "unx";
...@@ -316,14 +316,14 @@ elsif ( $platform =~ m/kfreebsd/ ) ...@@ -316,14 +316,14 @@ elsif ( $platform =~ m/kfreebsd/ )
$OS = "LINUX"; $OS = "LINUX";
$PATH_SEPERATOR = $ps; $PATH_SEPERATOR = $ps;
#Set platform specific values: #Set platform specific values:
if ($platform =~ m/^i[3456]86/) if ($platform =~ m/^i[3456]86/)
{ print "Setting GNU/kFreeBSD x86 specific values... "; { print "Setting GNU/kFreeBSD x86 specific values... ";
$outfile = "GNUkFreeBSDX86Env.Set"; $outfile = "GNUkFreeBSDX86Env.Set";
$CPU = "I"; $CPU = "I";
$CPUNAME = "INTEL"; $CPUNAME = "INTEL";
$OUTPATH = "unxkfgi6"; $OUTPATH = "unxkfgi6";
$JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386"; $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386";
$JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."client"; $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."client";
$JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."native_threads"; $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."native_threads";
...@@ -343,10 +343,10 @@ elsif ( $platform =~ m/kfreebsd/ ) ...@@ -343,10 +343,10 @@ elsif ( $platform =~ m/kfreebsd/ )
$INPATH = $OUTPATH.$PROEXT; $INPATH = $OUTPATH.$PROEXT;
} }
elsif ( $platform =~ m/freebsd/ ) elsif ( $platform =~ m/freebsd/ )
{ $BIG_SVX = "TRUE"; { $BIG_SVX = "TRUE";
$COM = "GCC"; $COM = "GCC";
$COMPATH = '@COMPATH@'; $COMPATH = '@COMPATH@';
$CVER = "C300"; $CVER = "C300";
$GUI = "UNX"; $GUI = "UNX";
$GUIBASE = "unx"; $GUIBASE = "unx";
...@@ -392,14 +392,14 @@ elsif ( $platform =~ m/freebsd/ ) ...@@ -392,14 +392,14 @@ elsif ( $platform =~ m/freebsd/ )
$CVER = "C341"; $CVER = "C341";
} }
$INPATH = $OUTPATH.$PROEXT; $INPATH = $OUTPATH.$PROEXT;
} }
elsif ( $platform =~ m/linux/ ) elsif ( $platform =~ m/linux/ )
{ {
# General Linux settings: # General Linux settings:
$CVER = "C341"; $CVER = "C341";
$BIG_SVX = "TRUE"; $BIG_SVX = "TRUE";
$COM = "GCC"; $COM = "GCC";
$COMPATH = '@COMPATH@'; $COMPATH = '@COMPATH@';
$GLIBC = "2REDHAT60"; $GLIBC = "2REDHAT60";
$GUI = "UNX"; $GUI = "UNX";
$GUIBASE = "unx"; $GUIBASE = "unx";
...@@ -407,13 +407,13 @@ elsif ( $platform =~ m/linux/ ) ...@@ -407,13 +407,13 @@ elsif ( $platform =~ m/linux/ )
$OS = "LINUX"; $OS = "LINUX";
$PATH_SEPERATOR = $ps; $PATH_SEPERATOR = $ps;
#Set platform specific values: #Set platform specific values:
if ($platform =~ m/^i[3456]86/) if ($platform =~ m/^i[3456]86/)
{ print "Setting Linux x86 specific values... "; { print "Setting Linux x86 specific values... ";
$outfile = "LinuxX86Env.Set"; $outfile = "LinuxX86Env.Set";
$CPU = "I"; $CPU = "I";
$CPUNAME = "INTEL"; $CPUNAME = "INTEL";
if ($JDK =~ m/^[Ii][Bb][Mm]/) if ($JDK =~ m/^[Ii][Bb][Mm]/)
{ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."bin"; { $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."bin";
$JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."bin".$ds."classic"; $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."bin".$ds."classic";
...@@ -424,7 +424,7 @@ elsif ( $platform =~ m/linux/ ) ...@@ -424,7 +424,7 @@ elsif ( $platform =~ m/linux/ )
$JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."jrockit"; $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."jrockit";
$JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."native_threads"; } $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."native_threads"; }
else { else {
$JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386"; $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386";
# has both server and client # has both server and client
$JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."client"; $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."client";
...@@ -456,9 +456,9 @@ elsif ( $platform =~ m/linux/ ) ...@@ -456,9 +456,9 @@ elsif ( $platform =~ m/linux/ )
$JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ia64".$ds."native_threads"; $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ia64".$ds."native_threads";
} }
elsif ($platform =~ m/^sparc/) elsif ($platform =~ m/^sparc/)
{ print "Setting Linux Sparc specific values... "; { print "Setting Linux Sparc specific values... ";
$outfile = "LinuxSparcEnv.Set"; $outfile = "LinuxSparcEnv.Set";
$CPU = "S"; $CPU = "S";
$CPUNAME = "SPARC"; $CPUNAME = "SPARC";
$OUTPATH = "unxlngs"; $OUTPATH = "unxlngs";
...@@ -470,7 +470,7 @@ elsif ( $platform =~ m/linux/ ) ...@@ -470,7 +470,7 @@ elsif ( $platform =~ m/linux/ )
{ {
if (($platform =~ m/^powerpc64/) && ('@SIZEOF_LONG@' eq '8')) { if (($platform =~ m/^powerpc64/) && ('@SIZEOF_LONG@' eq '8')) {
print "Setting Linux PPC64 specific values... "; print "Setting Linux PPC64 specific values... ";
$outfile = "LinuxPPC64Env.Set"; $outfile = "LinuxPPC64Env.Set";
$OUTPATH = "unxlngppc64"; $OUTPATH = "unxlngppc64";
$CPUNAME = "POWERPC64"; $CPUNAME = "POWERPC64";
...@@ -482,7 +482,7 @@ elsif ( $platform =~ m/linux/ ) ...@@ -482,7 +482,7 @@ elsif ( $platform =~ m/linux/ )
} }
else { else {
print "Setting Linux PPC specific values... "; print "Setting Linux PPC specific values... ";
$outfile = "LinuxPPCEnv.Set"; $outfile = "LinuxPPCEnv.Set";
$OUTPATH = "unxlngppc"; $OUTPATH = "unxlngppc";
$CPUNAME = "POWERPC"; $CPUNAME = "POWERPC";
...@@ -548,9 +548,9 @@ elsif ( $platform =~ m/linux/ ) ...@@ -548,9 +548,9 @@ elsif ( $platform =~ m/linux/ )
$JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."hppa".$ds."native_threads"; $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."hppa".$ds."native_threads";
$EPM_FLAGS = "-a hppa"; $EPM_FLAGS = "-a hppa";
} }
elsif ($platform =~ m/^alpha/) elsif ($platform =~ m/^alpha/)
{ print "Setting Linux Alpha specific values... "; { print "Setting Linux Alpha specific values... ";
$outfile = "LinuxAlphaEnv.Set"; $outfile = "LinuxAlphaEnv.Set";
$CPU = "L"; $CPU = "L";
$CPUNAME = "AXP"; $CPUNAME = "AXP";
$OUTPATH = "unxlngaxp"; $OUTPATH = "unxlngaxp";
...@@ -560,7 +560,7 @@ elsif ( $platform =~ m/linux/ ) ...@@ -560,7 +560,7 @@ elsif ( $platform =~ m/linux/ )
} }
elsif ($platform =~ m/^arm.*?l-/) elsif ($platform =~ m/^arm.*?l-/)
{ print "Setting Linux ARM specific values... "; { print "Setting Linux ARM specific values... ";
$outfile = "LinuxARMEnv.Set"; $outfile = "LinuxARMEnv.Set";
$CPU = "R"; $CPU = "R";
$CPUNAME = "ARM"; $CPUNAME = "ARM";
$OUTPATH = "unxlngr"; $OUTPATH = "unxlngr";
...@@ -571,7 +571,7 @@ elsif ( $platform =~ m/linux/ ) ...@@ -571,7 +571,7 @@ elsif ( $platform =~ m/linux/ )
} }
elsif ($platform =~ m/^mips/) elsif ($platform =~ m/^mips/)
{ print "Setting Linux MIPS specific values... "; { print "Setting Linux MIPS specific values... ";
$outfile = "LinuxMIPSEnv.Set"; $outfile = "LinuxMIPSEnv.Set";
$CPU = "M"; $CPU = "M";
$CPUNAME = "GODSON"; $CPUNAME = "GODSON";
$OUTPATH = "unxlngmips"; $OUTPATH = "unxlngmips";
...@@ -606,19 +606,19 @@ elsif ( $platform =~ m/linux/ ) ...@@ -606,19 +606,19 @@ elsif ( $platform =~ m/linux/ )
$JRETOOLKITDIR = '$JAVA_HOME'.$ds."lib".$ds.$ARCH.$ds."client"; # Lemote $JRETOOLKITDIR = '$JAVA_HOME'.$ds."lib".$ds.$ARCH.$ds."client"; # Lemote
} else { } else {
$JRETOOLKITDIR = '$JAVA_HOME'.$ds."lib".$ds.$ARCH.$ds."server"; $JRETOOLKITDIR = '$JAVA_HOME'.$ds."lib".$ds.$ARCH.$ds."server";
} }
$JRETHREADDIR = '$JAVA_HOME'.$ds."lib".$ds.$ARCH.$ds."native_threads"; $JRETHREADDIR = '$JAVA_HOME'.$ds."lib".$ds.$ARCH.$ds."native_threads";
} }
$INPATH = $OUTPATH.$PROEXT; $INPATH = $OUTPATH.$PROEXT;
} }
elsif ( $platform =~ m/osf1/ ) elsif ( $platform =~ m/osf1/ )
{ print "Setting Tru64 specific values... "; { print "Setting Tru64 specific values... ";
$outfile = "Tru64AlphaEnv.Set"; $outfile = "Tru64AlphaEnv.Set";
$BIG_SVX = "TRUE"; $BIG_SVX = "TRUE";
$COM = "CXX"; $COM = "CXX";
$COMPATH = '@COMPATH@'; $COMPATH = '@COMPATH@';
$CPU = "A"; $CPU = "A";
$CPUNAME = "ALPHA_"; $CPUNAME = "ALPHA_";
$CVER = "C62"; $CVER = "C62";
...@@ -632,8 +632,8 @@ elsif ( $platform =~ m/osf1/ ) ...@@ -632,8 +632,8 @@ elsif ( $platform =~ m/osf1/ )
$JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."alpha"; $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."alpha";
$JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."alpha".$ds."client"; $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."alpha".$ds."client";
$JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."alpha".$ds."native_threads"; $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."alpha".$ds."native_threads";
} }
elsif ( $platform =~ m/cygwin/ ) elsif ( $platform =~ m/cygwin/ )
{ {
$MSPDB_PATH = PathFormat('@MSPDB_PATH@'); $MSPDB_PATH = PathFormat('@MSPDB_PATH@');
$MIDL_PATH = PathFormat('@MIDL_PATH@'); $MIDL_PATH = PathFormat('@MIDL_PATH@');
...@@ -658,7 +658,7 @@ elsif ( $platform =~ m/cygwin/ ) ...@@ -658,7 +658,7 @@ elsif ( $platform =~ m/cygwin/ )
print "Setting Windows NT cygwin MinGW specific values... "; print "Setting Windows NT cygwin MinGW specific values... ";
$FLIPCMD = "slfl.pl"; $FLIPCMD = "slfl.pl";
$PATH_SEPERATOR = ';'; $PATH_SEPERATOR = ';';
$outfile = "winmingw.set"; $outfile = "winmingw.set";
$COMPATH = PathFormat('@COMPATH@/bin'); $COMPATH = PathFormat('@COMPATH@/bin');
$COMPATH =~ s/\/bin$//i; $COMPATH =~ s/\/bin$//i;
$COM = "GCC"; $COM = "GCC";
...@@ -706,8 +706,8 @@ elsif ( $platform =~ m/cygwin/ ) ...@@ -706,8 +706,8 @@ elsif ( $platform =~ m/cygwin/ )
$PATH_SEPERATOR = ';'; $PATH_SEPERATOR = ';';
} }
} }
elsif ( $platform =~ m/os2/ ) elsif ( $platform =~ m/os2/ )
{ {
$COMPATH = PathFormat('@COMPATH@'); $COMPATH = PathFormat('@COMPATH@');
$MSPDB_PATH = PathFormat('@MSPDB_PATH@'); $MSPDB_PATH = PathFormat('@MSPDB_PATH@');
$MIDL_PATH = PathFormat('@MIDL_PATH@'); $MIDL_PATH = PathFormat('@MIDL_PATH@');
...@@ -743,15 +743,15 @@ elsif ( $platform =~ m/os2/ ) ...@@ -743,15 +743,15 @@ elsif ( $platform =~ m/os2/ )
} }
} }
elsif ( $platform =~ m/darwin/ ) elsif ( $platform =~ m/darwin/ )
{ print "Setting Mac OS X/Darwin specific values... "; { print "Setting Mac OS X/Darwin specific values... ";
$BIG_SVX = "TRUE"; $BIG_SVX = "TRUE";
$COM = "GCC"; $COM = "GCC";
$COMPATH = '@COMPATH@'; $COMPATH = '@COMPATH@';
if ($platform =~ m/^powerpc/) if ($platform =~ m/^powerpc/)
{ {
print "Setting values for Mac OS X/Darwin on PowerPC... "; print "Setting values for Mac OS X/Darwin on PowerPC... ";
$outfile = "MacOSXPPCEnv.Set"; $outfile = "MacOSXPPCEnv.Set";
$CPU = "P"; $CPU = "P";
$CPUNAME = "POWERPC"; $CPUNAME = "POWERPC";
$OUTPATH = "unxmacxp"; $OUTPATH = "unxmacxp";
...@@ -759,7 +759,7 @@ elsif ( $platform =~ m/darwin/ ) ...@@ -759,7 +759,7 @@ elsif ( $platform =~ m/darwin/ )
else else
{ {
print "Setting values for Mac OS X/Darwin on default x86... "; print "Setting values for Mac OS X/Darwin on default x86... ";
$outfile = "MacOSXX86Env.Set"; $outfile = "MacOSXX86Env.Set";
$CPU = "I"; $CPU = "I";
$CPUNAME = "INTEL"; $CPUNAME = "INTEL";
$OUTPATH = "unxmacxi"; $OUTPATH = "unxmacxi";
...@@ -779,7 +779,7 @@ elsif ( $platform =~ m/darwin/ ) ...@@ -779,7 +779,7 @@ elsif ( $platform =~ m/darwin/ )
elsif ( $platform =~ m/aix/ ) elsif ( $platform =~ m/aix/ )
{ {
print "Setting AIX PPC specific values... "; print "Setting AIX PPC specific values... ";
$outfile = "aixPPCEnv.Set"; $outfile = "aixPPCEnv.Set";
$CPU = "P"; $CPU = "P";
$CPUNAME = "POWERPC"; $CPUNAME = "POWERPC";
$OUTPATH = "unxaigppc"; $OUTPATH = "unxaigppc";
...@@ -789,7 +789,7 @@ elsif ( $platform =~ m/aix/ ) ...@@ -789,7 +789,7 @@ elsif ( $platform =~ m/aix/ )
$BIG_SVX = "TRUE"; $BIG_SVX = "TRUE";
$COM = "GCC"; $COM = "GCC";
$CVER = "C300"; $CVER = "C300";
$COMPATH = '@COMPATH@'; $COMPATH = '@COMPATH@';
$GUI = "UNX"; $GUI = "UNX";
$GUIBASE = "unx"; $GUIBASE = "unx";
$GVER = "VCL"; $GVER = "VCL";
...@@ -808,7 +808,7 @@ print "done\n"; ...@@ -808,7 +808,7 @@ print "done\n";
# D. Gathering directory information from the user. # D. Gathering directory information from the user.
# #
# If the directory does not exist something is strange. # If the directory does not exist something is strange.
# 1. OpenOffice.org build home directory. # 1. LibreOffice build home directory.
chomp($SRC_ROOT = `pwd`); chomp($SRC_ROOT = `pwd`);
$SRC_ROOT =~ s/\/config_office//; $SRC_ROOT =~ s/\/config_office//;
$SRC_ROOT = PathFormat($SRC_ROOT); $SRC_ROOT = PathFormat($SRC_ROOT);
...@@ -891,9 +891,9 @@ $LIB = $ds."lib"; ...@@ -891,9 +891,9 @@ $LIB = $ds."lib";
$LIB64 = $ds."lib"; $LIB64 = $ds."lib";
$LIB64 .= "64" $LIB64 .= "64"
if ($platform =~ m/x86_64-.*-linux/); if ($platform =~ m/x86_64-.*-linux/);
$LIB64 .= "64" $LIB64 .= "64"
if (($platform =~ m/powerpc64-.*-linux/) && ('@SIZEOF_LONG@' eq '8')); if (($platform =~ m/powerpc64-.*-linux/) && ('@SIZEOF_LONG@' eq '8'));
$LIB64 .= "64" $LIB64 .= "64"
if (($platform =~ m/s390x-.*-linux/) && ('@SIZEOF_LONG@' eq '8')); if (($platform =~ m/s390x-.*-linux/) && ('@SIZEOF_LONG@' eq '8'));
$INC = $ds."inc"; $INC = $ds."inc";
$INCLUDE = $ds."include"; $INCLUDE = $ds."include";
...@@ -930,7 +930,7 @@ if ($STLPORT4 ne $no_stl) { ...@@ -930,7 +930,7 @@ if ($STLPORT4 ne $no_stl) {
# Windows NT only variables # Windows NT only variables
if ($platform =~ m/cygwin/) if ($platform =~ m/cygwin/)
{ {
if ( $JAVA_HOME ne "" ) if ( $JAVA_HOME ne "" )
{ {
$JAVA_LIB = $JAVA_HOME.$LIB; $JAVA_LIB = $JAVA_HOME.$LIB;
...@@ -956,7 +956,7 @@ if ( $JAVA_HOME ne "" ) ...@@ -956,7 +956,7 @@ if ( $JAVA_HOME ne "" )
$PERL = PathFormat('@PERL@'); # Perl program $PERL = PathFormat('@PERL@'); # Perl program
$PERL_PATH = dirname('@PERL@'); # Perl Path $PERL_PATH = dirname('@PERL@'); # Perl Path
$XLIB = PathFormat('@XLIB@'); # X11 libraries $XLIB = PathFormat('@XLIB@'); # X11 libraries
$XINC = PathFormat('@XINC@'); # X11 includes $XINC = PathFormat('@XINC@'); # X11 includes
...@@ -987,7 +987,7 @@ if ('@TARFILE_LOCATION@' eq "DEFAULT") ...@@ -987,7 +987,7 @@ if ('@TARFILE_LOCATION@' eq "DEFAULT")
# #
$DEVROOT = '$SRC_ROOT'; $DEVROOT = '$SRC_ROOT';
# Set solenv and solver to given or default values. # Set solenv and solver to given or default values.
# Location of the solenv tree. # Location of the solenv tree.
if ('@LOCAL_SOLENV@' eq "DEFAULT") if ('@LOCAL_SOLENV@' eq "DEFAULT")
{ $SOLARENV = PathFormat($SRC_ROOT.$SOLENV); { $SOLARENV = PathFormat($SRC_ROOT.$SOLENV);
...@@ -1009,19 +1009,19 @@ $SOLARVERSION = '$SOLARVER'; ...@@ -1009,19 +1009,19 @@ $SOLARVERSION = '$SOLARVER';
$SOLARDEFIMG = PathFormat($SRC_ROOT.$DEFIMGS); $SOLARDEFIMG = PathFormat($SRC_ROOT.$DEFIMGS);
$SOLARENVINC = '$SOLARENV'.$INC; $SOLARENVINC = '$SOLARENV'.$INC;
# Location of # Location of
$LOCALINI = '$SOLARENV'.$CONFIG; $LOCALINI = '$SOLARENV'.$CONFIG;
# Location of # Location of
$STAR_INIROOT = '$SOLARENV'.$CONFIG; $STAR_INIROOT = '$SOLARENV'.$CONFIG;
# Location of # Location of
$STAR_INIROOTOLD = '$SOLARENV'.$CONFIG; $STAR_INIROOTOLD = '$SOLARENV'.$CONFIG;
# Location of # Location of
$STAR_STANDLST = '$SOLARENV'.$CONFIG.$ds."stand.lst"; $STAR_STANDLST = '$SOLARENV'.$CONFIG.$ds."stand.lst";
# Location of # Location of
$STAR_SSCOMMON = '$SOLARENV'.$CONFIG.$ds."ssolar.cmn"; $STAR_SSCOMMON = '$SOLARENV'.$CONFIG.$ds."ssolar.cmn";
# Location of # Location of
$STAR_SSOLARINI = '$SOLARENV'.$CONFIG.$ds."ssolar.ini"; $STAR_SSOLARINI = '$SOLARENV'.$CONFIG.$ds."ssolar.ini";
# Location of dmake resource. # Location of dmake resource.
$DMAKEROOT = '$SOLARENVINC'.$ds."startup"; $DMAKEROOT = '$SOLARENVINC'.$ds."startup";
# Location of JDK classes .zip file. # Location of JDK classes .zip file.
# but in jdk 1.2 it is called rt.jar and it lives in jre/lib # but in jdk 1.2 it is called rt.jar and it lives in jre/lib
...@@ -1031,7 +1031,7 @@ $CLASSPATH = '$JAVA_HOME'.$ds.'jre'.$LIB.$ds."rt.jar".$wps.'.'; ...@@ -1031,7 +1031,7 @@ $CLASSPATH = '$JAVA_HOME'.$ds.'jre'.$LIB.$ds."rt.jar".$wps.'.';
$XCLASSPATH = '$JAVA_HOME'.$ds.'jre'.$LIB.$ds."rt.jar".$wps.'.'; $XCLASSPATH = '$JAVA_HOME'.$ds.'jre'.$LIB.$ds."rt.jar".$wps.'.';
# Location used by the linker to create libraries. # Location used by the linker to create libraries.
if ($platform =~ m/solaris/) if ($platform =~ m/solaris/)
{ $SOLAREXTRALIB = $L.$par_dir.$LIB. { $SOLAREXTRALIB = $L.$par_dir.$LIB.
$L.'$SOLARENV'.$ds.'$OUTPATH'.$ds."lib.solaris.2.6". $L.'$SOLARENV'.$ds.'$OUTPATH'.$ds."lib.solaris.2.6".
$L.$LIB. $L.$LIB.
...@@ -1044,7 +1044,7 @@ elsif ($platform =~ m/linux|netbsd|osf1|freebsd|aix/) ...@@ -1044,7 +1044,7 @@ elsif ($platform =~ m/linux|netbsd|osf1|freebsd|aix/)
{ {
$SOLAREXTRALIB = $L.$par_dir.$LIB64; $SOLAREXTRALIB = $L.$par_dir.$LIB64;
} }
elsif ($platform =~ m/darwin/) elsif ($platform =~ m/darwin/)
{ $SOLAREXTRALIB = $L.$LIB. { $SOLAREXTRALIB = $L.$LIB.
$L.$USR.$LIB; $L.$USR.$LIB;
} }
...@@ -1104,7 +1104,7 @@ if ($platform =~ m/cygwin|os2/) ...@@ -1104,7 +1104,7 @@ if ($platform =~ m/cygwin|os2/)
$JAVAHOME = '$JAVA_HOME'; $JAVAHOME = '$JAVA_HOME';
} }
# The general environment path. # The general environment path.
if ($platform =~ m/linux|netbsd|odf1|freebsd|aix|solaris/) if ($platform =~ m/linux|netbsd|odf1|freebsd|aix|solaris/)
{ $PATH = $cur_dir. { $PATH = $cur_dir.
...@@ -1122,7 +1122,7 @@ if ($platform =~ m/linux|netbsd|odf1|freebsd|aix|solaris/) ...@@ -1122,7 +1122,7 @@ if ($platform =~ m/linux|netbsd|odf1|freebsd|aix|solaris/)
if (( $JAVA_HOME ne "" ) && ( $JDK ne "gcj" )) { if (( $JAVA_HOME ne "" ) && ( $JDK ne "gcj" )) {
@javaBits = ( '$JAVA_HOME'.$BIN, 'javac' ); @javaBits = ( '$JAVA_HOME'.$BIN, 'javac' );
} else { } else {
@javaBits = (); @javaBits = ();
} }
$PATH = GetCorrectPath ($PATH, $PATH = GetCorrectPath ($PATH,
$COMPATH, $CC, $COMPATH, $CC,
...@@ -1145,10 +1145,10 @@ elsif ($platform =~ m/cygwin/) ...@@ -1145,10 +1145,10 @@ elsif ($platform =~ m/cygwin/)
if ( $JAVA_HOME ne "" ) if ( $JAVA_HOME ne "" )
{ {
# hack either "hotspot" or "client" should be used, depending on the jdk version: # hack either "hotspot" or "client" should be used, depending on the jdk version:
# 1.2.x - no such directory, unsupported # 1.2.x - no such directory, unsupported
# 1.3.x - hotspot, client missing # 1.3.x - hotspot, client missing
# 1.4.x - client, hotspot missing # 1.4.x - client, hotspot missing
$PATH .= $ps.CygFormat($JAVA_HOME).$BIN; $PATH .= $ps.CygFormat($JAVA_HOME).$BIN;
if ( -d $JAVA_HOME.$ds."jre".$ds."bin".$ds."hotspot" ) { if ( -d $JAVA_HOME.$ds."jre".$ds."bin".$ds."hotspot" ) {
$PATH .= $ps.CygFormat($JAVA_HOME).$ds."jre".$ds."bin".$ds."hotspot"; $PATH .= $ps.CygFormat($JAVA_HOME).$ds."jre".$ds."bin".$ds."hotspot";
...@@ -1196,7 +1196,7 @@ elsif ($platform =~ m/cygwin/) ...@@ -1196,7 +1196,7 @@ elsif ($platform =~ m/cygwin/)
if ( $ASM_PATH ne "ASM_IN_PATH" ) if ( $ASM_PATH ne "ASM_IN_PATH" )
{ $PATH .= $ps.CygFormat($ASM_PATH); { $PATH .= $ps.CygFormat($ASM_PATH);
} }
# zip.exe / unzip.exe path for Windows users. # zip.exe / unzip.exe path for Windows users.
my $zip_home_path = PathFormat('@ZIP_HOME@'); my $zip_home_path = PathFormat('@ZIP_HOME@');
$tmppath = CygFormat($zip_home_path); $tmppath = CygFormat($zip_home_path);
...@@ -1278,10 +1278,10 @@ elsif ($platform =~ m/os2/) ...@@ -1278,10 +1278,10 @@ elsif ($platform =~ m/os2/)
if ( $JAVA_HOME ne "" ) if ( $JAVA_HOME ne "" )
{ {
# hack either "hotspot" or "client" should be used, depending on the jdk version: # hack either "hotspot" or "client" should be used, depending on the jdk version:
# 1.2.x - no such directory, unsupported # 1.2.x - no such directory, unsupported
# 1.3.x - hotspot, client missing # 1.3.x - hotspot, client missing
# 1.4.x - client, hotspot missing # 1.4.x - client, hotspot missing
$PATH .= $ps.$JAVA_HOME.$BIN; $PATH .= $ps.$JAVA_HOME.$BIN;
if ( -d $JAVA_HOME.$ds."jre".$ds."bin".$ds."hotspot" ) { if ( -d $JAVA_HOME.$ds."jre".$ds."bin".$ds."hotspot" ) {
$PATH .= $ps.$JAVA_HOME.$ds."jre".$ds."bin".$ds."hotspot"; $PATH .= $ps.$JAVA_HOME.$ds."jre".$ds."bin".$ds."hotspot";
...@@ -1310,8 +1310,8 @@ else ...@@ -1310,8 +1310,8 @@ else
{ AddWarning( "set_soenv", "$platform not configured for general environment paths" ); { AddWarning( "set_soenv", "$platform not configured for general environment paths" );
} }
# Linker library search directory paths. # Linker library search directory paths.
if ($platform =~ m/solaris/) if ($platform =~ m/solaris/)
{ $SOLARLIB = $L.$par_dir.$LIB. { $SOLARLIB = $L.$par_dir.$LIB.
$L.'$SOLARENV'.$ds.'$OUTPATH'.$LIB. $L.'$SOLARENV'.$ds.'$OUTPATH'.$LIB.
$L.'$SOLARVER'.$ds.'$INPATH'.$LIB. $L.'$SOLARVER'.$ds.'$INPATH'.$LIB.
...@@ -1349,8 +1349,8 @@ elsif ($platform =~ m/cygwin|os2/) ...@@ -1349,8 +1349,8 @@ elsif ($platform =~ m/cygwin|os2/)
$L.$par_dir.$LIB. $L.$par_dir.$LIB.
$L_STLPORT_LIB. $L_STLPORT_LIB.
$L.'$SOLARENV'.$ds.'$OUTPATH'.$LIB; $L.'$SOLARENV'.$ds.'$OUTPATH'.$LIB;
} }
elsif ($platform =~ m/darwin/) elsif ($platform =~ m/darwin/)
{ $SOLARLIB = $L.'$SOLARVER'.$ds.'$INPATH'.$LIB. { $SOLARLIB = $L.'$SOLARVER'.$ds.'$INPATH'.$LIB.
$L_STLPORT_LIB. $L_STLPORT_LIB.
$L.$USR_LIB; $L.$USR_LIB;
...@@ -1389,7 +1389,7 @@ $SOLARINC .= '/SC5 '; ...@@ -1389,7 +1389,7 @@ $SOLARINC .= '/SC5 ';
} }
# Platform dependent include path at the top of this list of include paths # Platform dependent include path at the top of this list of include paths
if ($platform =~ m/solaris/) if ($platform =~ m/solaris/)
{ {
$SOLARINC .= $I.$COMPATH.$ds."include"; $SOLARINC .= $I.$COMPATH.$ds."include";
} }
if ($platform =~ m/linux/) if ($platform =~ m/linux/)
...@@ -1499,7 +1499,7 @@ print "done\n"; ...@@ -1499,7 +1499,7 @@ print "done\n";
# F. Setting the different aliases. # F. Setting the different aliases.
# #
print "Setting the aliases... "; print "Setting the aliases... ";
# 1. alias for a full product make. # 1. alias for a full product make.
$mkout = '"perl $SOLARENV/bin/mkout.pl"'; $mkout = '"perl $SOLARENV/bin/mkout.pl"';
$deliver = '"perl $SOLARENV/bin/deliver.pl"'; $deliver = '"perl $SOLARENV/bin/deliver.pl"';
$build = '"perl $SOLARENV/bin/build.pl"'; $build = '"perl $SOLARENV/bin/build.pl"';
...@@ -1759,7 +1759,7 @@ if ( $GUI eq "UNX" ) { ...@@ -1759,7 +1759,7 @@ if ( $GUI eq "UNX" ) {
ToFile( "AWTLIB", '@AWTLIB@', "e" ); ToFile( "AWTLIB", '@AWTLIB@', "e" );
} }
if ( '@JDK@' ne '' ) if ( '@JDK@' ne '' )
{ {
ToFile( "JDK", "@JDK@", "e" ); ToFile( "JDK", "@JDK@", "e" );
ToFile( "JAVAFLAGS", "@JAVAFLAGS@", "e" ); ToFile( "JAVAFLAGS", "@JAVAFLAGS@", "e" );
ToFile( "JAVA_SOURCE_VER", "@JAVA_SOURCE_VER@","e" ); ToFile( "JAVA_SOURCE_VER", "@JAVA_SOURCE_VER@","e" );
...@@ -1991,7 +1991,7 @@ if ( $platform =~ m/cygwin/ ) ...@@ -1991,7 +1991,7 @@ if ( $platform =~ m/cygwin/ )
if ( $platform =~ m/os2/ ) if ( $platform =~ m/os2/ )
{ {
#ToFile( "ILIB", $ILIB, "e" ); #ToFile( "ILIB", $ILIB, "e" );
ToFile( "GREP", "grep.exe", "e" ); ToFile( "GREP", "grep.exe", "e" );
ToFile( "FIND", "find.exe", "e" ); ToFile( "FIND", "find.exe", "e" );
ToFile( "LS", "ls.exe", "e" ); ToFile( "LS", "ls.exe", "e" );
...@@ -2060,7 +2060,7 @@ ToFile( "SAL_ENABLE_FILE_LOCKING", "1", "e"); ...@@ -2060,7 +2060,7 @@ ToFile( "SAL_ENABLE_FILE_LOCKING", "1", "e");
ToFile( "DBGSV_INIT", "$SOLARENV/bin/dbgsv.ini", "e"); ToFile( "DBGSV_INIT", "$SOLARENV/bin/dbgsv.ini", "e");
# #
# Writing unset variables you might not need to file. # Writing unset variables you might not need to file.
# #
print OUT $unsetvars; print OUT $unsetvars;
print OUT_SH "export $exportvars$newline"; print OUT_SH "export $exportvars$newline";
...@@ -2108,17 +2108,17 @@ if (rename( $outfile_sh, $tmp ) ne 1) ...@@ -2108,17 +2108,17 @@ if (rename( $outfile_sh, $tmp ) ne 1)
print "$newline"; print "$newline";
print "*********************************************************". print "*********************************************************".
"******************* $newline"."*"."$newline"; "******************* $newline"."*"."$newline";
print "* OpenOffice.org $UPD configuration. $newline"; print "* LibreOffice $UPD configuration. $newline";
for ( $tmp = 0; $tmp < 2; $tmp++ ) for ( $tmp = 0; $tmp < 2; $tmp++ )
{ print "* $newline"; { print "* $newline";
} }
print "* Configuration part of OpenOffice.org $UPD build is finished. $newline* $newline"; print "* Configuration part of LibreOffice $UPD build is finished. $newline* $newline";
print "* NB! Be aware that you might not be able to build OpenOffice.org if you $newline". print "* NB! Be aware that you might not be able to build LibreOffice if you $newline".
"* ignore any warning message that were generated during this configuration $newline". "* ignore any warning message that were generated during this configuration $newline".
"* process. $newline* $newline"; "* process. $newline* $newline";
if ( $Warning ne "" ) if ( $Warning ne "" )
{ print "$Warning*"; { print "$Warning*";
print "$newline"; print "$newline";
} }
...@@ -2134,8 +2134,8 @@ $bootfile = "bootstrap"; ...@@ -2134,8 +2134,8 @@ $bootfile = "bootstrap";
open( OUT, ">$bootfile" ) || open( OUT, ">$bootfile" ) ||
die "Cannot open $bootfile: $!\n"; die "Cannot open $bootfile: $!\n";
print OUT "#!/bin/sh\n"; print OUT "#!/bin/sh\n";
print OUT "_ISBOOTSTRAP_=TRUE ; export _ISBOOTSTRAP_ ; . $SRC_ROOT/$outfile.sh\n"; print OUT "_ISBOOTSTRAP_=TRUE ; export _ISBOOTSTRAP_ ; . $SRC_ROOT/$outfile.sh\n";
print OUT "unset _ISBOOTSTRAP_; export _ISBOOTSTRAP_\n"; print OUT "unset _ISBOOTSTRAP_; export _ISBOOTSTRAP_\n";
if ( $MINGW eq "yes" ) if ( $MINGW eq "yes" )
{ print OUT 'PATH="/usr/bin:$PATH" : export PATH'."\n"; } { print OUT 'PATH="/usr/bin:$PATH" : export PATH'."\n"; }
close( OUT ) || print "Can't close $bootfile: $!"; close( OUT ) || print "Can't close $bootfile: $!";
...@@ -2162,7 +2162,7 @@ if ( $Warning ne "" ) { ...@@ -2162,7 +2162,7 @@ if ( $Warning ne "" ) {
#----------------- #-----------------
# #
#------------------------------------------------------------- #-------------------------------------------------------------
# Function name: CheckPathName # Function name: CheckPathName
# Description: chops off the '/' character if it's the last # Description: chops off the '/' character if it's the last
# character in a pathname. also adds the '/' # character in a pathname. also adds the '/'
# character if it's not the first character # character if it's not the first character
...@@ -2170,11 +2170,11 @@ if ( $Warning ne "" ) { ...@@ -2170,11 +2170,11 @@ if ( $Warning ne "" ) {
# Arguments: 1. Path (string) # Arguments: 1. Path (string)
# Return value: Path (string) # Return value: Path (string)
#------------------------------------------------------------- #-------------------------------------------------------------
sub CheckPathName sub CheckPathName
{ my $retrn = $_[ 0 ]; { my $retrn = $_[ 0 ];
if ($platform =~ m/cygwin/) if ($platform =~ m/cygwin/)
{ # Check if the first character is not a '/'. { # Check if the first character is not a '/'.
if ( !( $_[ 0 ] =~ /^\// ) ) if ( !( $_[ 0 ] =~ /^\// ) )
{ $retrn = $ds.$_[ 0 ]; { $retrn = $ds.$_[ 0 ];
} }
} }
...@@ -2184,13 +2184,13 @@ sub CheckPathName ...@@ -2184,13 +2184,13 @@ sub CheckPathName
return( $retrn ); return( $retrn );
} }
#------------------------------------------------------------- #-------------------------------------------------------------
# Function name: CheckPathExist # Function name: CheckPathExist
# Description: Checks whether the directory that is given # Description: Checks whether the directory that is given
# as an argument exists. If not abort. # as an argument exists. If not abort.
# Arguments: 1. Path (string) # Arguments: 1. Path (string)
# Return value: void # Return value: void
#------------------------------------------------------------- #-------------------------------------------------------------
sub CheckPathExist sub CheckPathExist
{ my $dir = $_[ 0 ]; { my $dir = $_[ 0 ];
if ( !( -d $dir ) and $^O ne 'MSWin32' ) if ( !( -d $dir ) and $^O ne 'MSWin32' )
{ print ( "The directory $_[ 0 ] does not exist. Please create first.\n" ); { print ( "The directory $_[ 0 ] does not exist. Please create first.\n" );
...@@ -2203,7 +2203,7 @@ sub CheckPathExist ...@@ -2203,7 +2203,7 @@ sub CheckPathExist
} }
} }
#------------------------------------------------------------ #------------------------------------------------------------
# Function name: CreateFileHeader # Function name: CreateFileHeader
# Description: Creates a header for the outfile. # Description: Creates a header for the outfile.
# Arguments: 1. File to write to # Arguments: 1. File to write to
# 2. UPD (string) # 2. UPD (string)
...@@ -2212,19 +2212,19 @@ sub CheckPathExist ...@@ -2212,19 +2212,19 @@ sub CheckPathExist
# 5. comment to use for this file # 5. comment to use for this file
# Return value: void # Return value: void
#------------------------------------------------------------ #------------------------------------------------------------
sub CreateFileHeader sub CreateFileHeader
{ my $timestamp = `date`; { my $timestamp = `date`;
chomp( $timestamp ); chomp( $timestamp );
my $filehandle = $_[0]; my $filehandle = $_[0];
my $comment = $_[4]; my $comment = $_[4];
print { $filehandle } "$comment #################################################################"; print { $filehandle } "$comment #################################################################";
print { $filehandle } $newline; print { $filehandle } $newline;
print { $filehandle } "$comment OpenOffice.org $_[ 1 ] build environment file for: $_[ 2 ]. $newline"; print { $filehandle } "$comment LibreOffice $_[ 1 ] build environment file for: $_[ 2 ]. $newline";
print { $filehandle } "$comment Generated on: $timestamp $newline"; print { $filehandle } "$comment Generated on: $timestamp $newline";
print { $filehandle } "$comment Source this file to set up the build environment. $newline"; print { $filehandle } "$comment Source this file to set up the build environment. $newline";
print { $filehandle } "$comment 1. exec $_[3] $newline"; print { $filehandle } "$comment 1. exec $_[3] $newline";
print { $filehandle } "$comment 2. source $outfile $newline"; print { $filehandle } "$comment 2. source $outfile $newline";
print { $filehandle } "$comment #################################################################"; print { $filehandle } "$comment #################################################################";
print { $filehandle } $newline; print { $filehandle } $newline;
} }
#--------------------------------------------------------- #---------------------------------------------------------
...@@ -2264,13 +2264,13 @@ sub ToFile { ...@@ -2264,13 +2264,13 @@ sub ToFile {
$unsetvarssh .= " $_[ 0 ]"; # for sh file $unsetvarssh .= " $_[ 0 ]"; # for sh file
} }
} }
elsif ( $_[ 2 ] eq "a" ) elsif ( $_[ 2 ] eq "a" )
{ # Write an alias to file. { # Write an alias to file.
print "The $_[ 0 ] is set to: $_[ 1 ]\n" if ( '@VERBOSE@' eq 'TRUE' ); # to stdout print "The $_[ 0 ] is set to: $_[ 1 ]\n" if ( '@VERBOSE@' eq 'TRUE' ); # to stdout
print OUT "$_[ 0 ] $_[ 1 ]$newline"; # to tcsh file print OUT "$_[ 0 ] $_[ 1 ]$newline"; # to tcsh file
print OUT_SH "$_[ 0 ]=$_[ 1 ]$newline"; # to sh file print OUT_SH "$_[ 0 ]=$_[ 1 ]$newline"; # to sh file
} }
elsif ( $_[ 2 ] eq "c" ) elsif ( $_[ 2 ] eq "c" )
{ # Write a comment to file. { # Write a comment to file.
if ( '@VERBOSE@' eq 'TRUE' ) if ( '@VERBOSE@' eq 'TRUE' )
{ {
...@@ -2469,7 +2469,7 @@ sub WinPath ...@@ -2469,7 +2469,7 @@ sub WinPath
#-------------------------------------------------------- #--------------------------------------------------------
# Function name: GetCorrectPath # Function name: GetCorrectPath
# Description: Creates the build environment. # Description: Creates the build environment.
# Arguments: 1. existing / original path # Arguments: 1. existing / original path
# 2... pairs of <path, executable> # 2... pairs of <path, executable>
# Return value: String - Correct Path # Return value: String - Correct Path
...@@ -2495,7 +2495,7 @@ sub GetCorrectPath ...@@ -2495,7 +2495,7 @@ sub GetCorrectPath
my $haystack = shift; my $haystack = shift;
if ($needle eq $haystack) { if ($needle eq $haystack) {
return 1; return 1;
} }
} }
return 0; return 0;
} }
...@@ -2567,7 +2567,7 @@ sub GetCorrectPath ...@@ -2567,7 +2567,7 @@ sub GetCorrectPath
} }
#------------------------------------------------------------ #------------------------------------------------------------
# Function name: AddWarning # Function name: AddWarning
# Description: Adds any kind of warning for the user. # Description: Adds any kind of warning for the user.
# The warning will be shown at the end # The warning will be shown at the end
# of this script. # of this script.
...@@ -2576,21 +2576,21 @@ sub GetCorrectPath ...@@ -2576,21 +2576,21 @@ sub GetCorrectPath
# 2. Warning (string). # 2. Warning (string).
# Return value: void # Return value: void
#------------------------------------------------------------ #------------------------------------------------------------
sub AddWarning sub AddWarning
{ if ( $_[ 0 ] eq "configure" ) { if ( $_[ 0 ] eq "configure" )
{ open( IN, $warnfile ); { open( IN, $warnfile );
while ( <IN> ) while ( <IN> )
{ $Warning = $Warning."* - ".$_; { $Warning = $Warning."* - ".$_;
} }
close( IN ); close( IN );
# Remove the temporary warning file. # Remove the temporary warning file.
# unlink ( $warnfile ); # unlink ( $warnfile );
} }
elsif ( $_[ 0 ] eq "set_soenv" ) elsif ( $_[ 0 ] eq "set_soenv" )
{ my ( $arg1 ); { my ( $arg1 );
$arg1 = $_[ 1 ]; $arg1 = $_[ 1 ];
chomp( $arg1 ); # cut off new line chomp( $arg1 ); # cut off new line
$Warning = $Warning."* - set_soenv: warning: $arg1 $newline"; # add the warning $Warning = $Warning."* - set_soenv: warning: $arg1 $newline"; # add the warning
} }
} }
#------------------- #-------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment