jprt.config revision 2362
0N/A#!echo "This is not a shell script" 0N/A############################################################################# 2362N/A# Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved. 0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A# This code is free software; you can redistribute it and/or modify it 0N/A# under the terms of the GNU General Public License version 2 only, as 0N/A# published by the Free Software Foundation. 0N/A# This code is distributed in the hope that it will be useful, but WITHOUT 0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A# version 2 for more details (a copy is included in the LICENSE file that 0N/A# accompanied this code). 0N/A# You should have received a copy of the GNU General Public License version 0N/A# 2 along with this work; if not, write to the Free Software Foundation, 0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A############################################################################# 0N/A# JPRT shell configuration for testing. 0N/A# Input environment variables: 0N/A# Output variable settings: 0N/A# make Full path to GNU make 0N/A# Output environment variables: 0N/A############################################################################# 0N/A############################################################################# 0N/A# Directory must exist 0N/A if [ ! -d "$1" ] ; then 0N/A error "Directory for $2 does not exist: $1" 0N/A if [ ! -f "$1" ] ; then 0N/A############################################################################# 0N/A# Should be set by JPRT as the 3 basic inputs 0N/Aif [
"${slashjava}" =
"" ] ;
then 0N/A# Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise. 0N/A # SOLARIS: Sparc or X86 0N/A # Add basic solaris system paths 0N/A # File creation mask 0N/A # Windows: Differs on CYGWIN vs. MKS. 0N/A # We need to determine if we are running a CYGWIN shell or an MKS shell 0N/A # (if uname isn't available, then it will be unix_toolset=unknown) 0N/A # We kind of assume ROOTDIR is where MKS is and it's ok 0N/A # Most unix utilities are in the mksnt directory of ROOTDIR 0N/A # For CYGWIN, uname will have "Cygwin" in it, and /bin/cygpath should exist 0N/A echo "WARNING: Cannot figure out if this is MKS or CYGWIN" 0N/A # For windows, it's hard to know where the system is, so we just add this 0N/A # Convert path4sdk to cygwin style 0N/A# Export PATH setting