forked from oracle/coherence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unix-style shell support for Windows
[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 78407]
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright (c) 2000, 2020, Oracle and/or its affiliates. | ||
# | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# http://oss.oracle.com/licenses/upl. | ||
# | ||
|
||
# | ||
# This script sets all environment variables necessary to build Coherence. | ||
# | ||
# Command line: | ||
# . ./cfgwindows.sh [-reset] | ||
# | ||
# see cfgcommon.sh | ||
|
||
# | ||
# Global Variables | ||
# | ||
|
||
# The platform specific command used to locate the correct version of java | ||
# Note: this command is evaluated when required | ||
_JAVA_HOME_CMD="get_java_home" | ||
|
||
function get_java_home | ||
{ | ||
echo Not Supported | ||
} | ||
|
||
# determine the scripts directory, assuming all scripts are in the same directory | ||
SCRIPT_PATH="${BASH_SOURCE[0]}" | ||
while [ -h "${SCRIPT_PATH}" ]; do | ||
LS=`ls -ld "${SCRIPT_PATH}"` | ||
LINK=`expr "${LS}" : '.*-> \(.*\)$'` | ||
if [ `expr "${LINK}" : '/.*'` > /dev/null ]; then | ||
SCRIPT_PATH="${LINK}" | ||
else | ||
SCRIPT_PATH="`dirname "${SCRIPT_PATH}"`/${LINK}" | ||
fi | ||
done | ||
|
||
cd `dirname $SCRIPT_PATH` | ||
SCRIPTS_DIR=`pwd` | ||
cd - &>/dev/null | ||
|
||
if [ -f $SCRIPTS_DIR/../tools/internal/bin/cfgwindows.sh ]; then | ||
source $SCRIPTS_DIR/../tools/internal/bin/cfgwindows.sh | ||
fi | ||
|
||
source $SCRIPTS_DIR/cfgcommon.sh | ||
|
||
unset SCRIPT_PATH | ||
unset SCRIPTS_DIR |