langtools/make/jprt.config
author peterz
Wed, 04 Feb 2009 18:48:24 +0300
changeset 2481 3aa9107f1b72
parent 10 06bc494ca11e
permissions -rw-r--r--
6588003: LayoutQueue shares mutable implementation across AppContexts Summary: DefaultQueue property is made per-AppContext Reviewed-by: alexp
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
#!echo "This is not a shell script"
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
#############################################################################
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
#
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
# Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
#
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
# This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
# under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
# published by the Free Software Foundation.  Sun designates this
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
# particular file as subject to the "Classpath" exception as provided
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
# by Sun in the LICENSE file that accompanied this code.
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
# This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
# version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
# accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
# You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
# 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    21
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
# CA 95054 USA or visit www.sun.com if you need additional information or
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
# have any questions.
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
#############################################################################
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
# JPRT shell configuration for building.
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
# Input environment variables:
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
#    ALT_BOOTDIR
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
#    ALT_SLASH_JAVA
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
#    ALT_JDK_IMPORT_PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
#    Windows Only:
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
#      PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
#      PROCESSOR_IDENTIFIER
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
#      ROOTDIR
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
# Output variable settings:
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
#    make    Full path to GNU make
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
# Output environment variables:
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
#    PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
#    Windows Only:
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
#      ALT_DEVTOOLS_PATH (To avoid the C:/UTILS default)
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
# After JDK6, most settings will be found via ALT_SLASH_JAVA or
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
#   by way of other system environment variables. If this was JDK5
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
#   or an older JDK, you might need to export more ALT_* variables.
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
#############################################################################
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
#############################################################################
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
# Error
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
error() # message
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
{
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
  echo "ERROR: $1"
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
  exit 6
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
}
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
# Directory must exist
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
dirMustExist() # dir name
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
{
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
  if [ ! -d "$1" ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
    error "Directory for $2 does not exist: $1"
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
  fi
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
}
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
# File must exist
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
fileMustExist() # dir name
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
{
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
  if [ ! -f "$1" ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
    error "File for $2 does not exist: $1"
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
  fi
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
}
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
#############################################################################
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
# Should be set by JPRT as the 3 basic inputs
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
bootdir="${ALT_BOOTDIR}"
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
slashjava="${ALT_SLASH_JAVA}"
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
jdk_import="${ALT_JDK_IMPORT_PATH}"
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
# Check input
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
dirMustExist "${bootdir}"    ALT_BOOTDIR
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
dirMustExist "${slashjava}"  ALT_SLASH_JAVA
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
# Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
osname=`uname -s`
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
if [ "${osname}" = SunOS ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
   
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
    # SOLARIS: Sparc or X86
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
    osarch=`uname -p`
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
    if [ "${osarch}" = sparc ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
	solaris_arch=sparc
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
    else
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
	solaris_arch=i386
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
    fi
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
    # Add basic solaris system paths
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
    path4sdk=/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
    # Get the previous JDK to be used to bootstrap the build
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
    path4sdk=${bootdir}/bin:${path4sdk}
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
    # Ant
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
    ANT_HOME=${slashjava}/devtools/share/ant/1.7.0
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
    export ANT_HOME
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
    antbindir=${ANT_HOME}/bin
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
    fileMustExist "${antbindir}/ant" ant
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
    path4sdk=${antbindir}:${path4sdk}
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
    # Find GNU make
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
    make=/usr/sfw/bin/gmake
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
    if [ ! -f ${make} ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
	make=/opt/sfw/bin/gmake
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
	if [ ! -f ${make} ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
	    make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
        fi 
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
    fi
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
    fileMustExist "${make}" make
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
    # File creation mask
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
    umask 002
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
elif [ "${osname}" = Linux ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
   
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
    # LINUX: X86, AMD64
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
    osarch=`uname -m`
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
    if [ "${osarch}" = i686 ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
	linux_arch=i586
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
    elif [ "${osarch}" = x86_64 ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
	linux_arch=amd64
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
    fi
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
    # Add basic paths
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
    path4sdk=/usr/bin:/bin:/usr/sbin:/sbin
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
    # Get the previous JDK to be used to bootstrap the build
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
    path4sdk=${bootdir}/bin:${path4sdk}
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
    # Ant
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
    ANT_HOME=${slashjava}/devtools/share/ant/1.7.0
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
    export ANT_HOME
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
    antbindir=${ANT_HOME}/bin
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
    fileMustExist "${antbindir}/ant" ant
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
    path4sdk=${antbindir}:${path4sdk}
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
    
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
    # Find GNU make
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
    make=/usr/bin/make
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
    fileMustExist "${make}" make
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
    umask 002
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
else
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
    # Windows: Differs on CYGWIN vs. MKS
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
    #   Also, blanks in pathnames gives GNU make headaches, so anything placed
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
    #   in any ALT_* variable should be the short windows dosname.
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
   
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
    # WINDOWS: Install and use MKS or CYGWIN (should have already been done)
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
    #   Assumption here is that you are in a shell window via MKS or cygwin.
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
    #   MKS install should have defined the environment variable ROOTDIR.
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
    #   We also need to figure out which one we have: X86, AMD64
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
    if [ "`echo ${PROCESSOR_IDENTIFIER} | fgrep AMD64`" != "" ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
	windows_arch=amd64
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
    else
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
	windows_arch=i586
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
    fi
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
    
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
    # We need to determine if we are running a CYGWIN shell or an MKS shell
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
    #    (if uname isn't available, then it will be unix_toolset=unknown)
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
    unix_toolset=unknown
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
    if [ "`uname -a | fgrep Cygwin`" = "" -a -d "${ROOTDIR}" ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
        # We kind of assume ROOTDIR is where MKS is and it's ok
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
        unix_toolset=MKS
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
        mkshome=`dosname -s "${ROOTDIR}"`
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
	# Utility to convert to short pathnames without spaces
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
	dosname="${mkshome}/mksnt/dosname -s"
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
        # Most unix utilities are in the mksnt directory of ROOTDIR
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
        unixcommand_path="${mkshome}/mksnt"
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
        path4sdk="${unixcommand_path}"
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
        dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
	devtools_path="${slashjava}/devtools/win32/bin"
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
	path4sdk="${devtools_path};${path4sdk}"
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
	# Normally this need not be set, but on Windows it's default is C:/UTILS
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
        ALT_DEVTOOLS_PATH="${devtools_path}"
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
	export ALT_DEVTOOLS_PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
        dirMustExist "${devtools_path}" ALT_DEVTOOLS_PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
        # Find GNU make
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
        make="${devtools_path}/gnumake.exe"
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
        fileMustExist "${make}" make
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
    elif [ "`uname -a | fgrep Cygwin`" != "" -a -f /bin/cygpath ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
        # For CYGWIN, uname will have "Cygwin" in it, and /bin/cygpath should exist
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
        unix_toolset=CYGWIN
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
	# Utility to convert to short pathnames without spaces
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
	dosname="/usr/bin/cygpath -a -m -s"
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
        # Most unix utilities are in the /usr/bin
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
        unixcommand_path="/usr/bin"
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
        path4sdk="${unixcommand_path}"
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
        dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
        # Find GNU make
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
        make="${unixcommand_path}/make.exe"
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
        fileMustExist "${make}" make
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
    else
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
      echo "WARNING: Cannot figure out if this is MKS or CYGWIN"
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
    fi
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
    # WINDOWS: Get the previous JDK to be used to bootstrap the build
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
    path4sdk="${bootdir}/bin;${path4sdk}"
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
    # Ant
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
    ANT_HOME=${slashjava}/devtools/share/ant/1.7.0
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
    export ANT_HOME
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
    antbindir=${ANT_HOME}/bin
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
    fileMustExist "${antbindir}/ant" ant
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
    path4sdk="${antbindir};${path4sdk}"
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
    # Turn all \\ into /, remove duplicates and trailing /
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
    slash_path="`echo ${path4sdk} | sed -e 's@\\\\@/@g' -e 's@//@/@g' -e 's@/$@@' -e 's@/;@;@g'`"
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
    
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
    # For windows, it's hard to know where the system is, so we just add this
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
    #    to PATH.
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
    path4sdk="${slash_path};${PATH}"
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
    
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
    # Convert path4sdk to cygwin style
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
    if [ "${unix_toolset}" = CYGWIN ] ; then
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
	path4sdk="`/usr/bin/cygpath -p ${path4sdk}`"
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
    fi
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
fi
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
# Export PATH setting
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
PATH="${path4sdk}"
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
export PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
# Things we need to unset
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
unset LD_LIBRARY_PATH
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
unset LD_LIBRARY_PATH_32
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
unset LD_LIBRARY_PATH_64
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
unset JAVA_HOME
06bc494ca11e Initial load
duke
parents:
diff changeset
   241