< prev index next >

test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh

Print this page
rev 59104 : imported patch serviceability


  26 # or .access files from a list of input .in files.
  27 #
  28 # Source in this GeneratePropertyPassword.sh and call the function
  29 # generatePropertyPasswordFiles.
  30 # Call restoreFilePermissions to restore file permissions after the test completes
  31 #
  32 
  33 
  34 OS=`uname -s`
  35 UMASK=`umask`
  36 
  37 case $OS in
  38 CYGWIN_NT*)
  39     OS="Windows_NT"
  40     if [ -z "$SystemRoot" ] ;  then
  41         SystemRoot=`cygpath $SYSTEMROOT`
  42     fi
  43 esac
  44 
  45 case $OS in
  46 SunOS | Linux | Darwin | AIX )
  47     PATHSEP=":"
  48     FILESEP="/"
  49     DFILESEP=$FILESEP
  50     TMP_FILE=${TESTCLASSES}${FILESEP}${TESTCLASS}.sed.tmpfile
  51 
  52 cat <<EOF > ${TMP_FILE}
  53 s^@TEST-SRC@/^${TESTCLASSES}${DFILESEP}^g
  54 EOF
  55     ;;
  56 Windows_95 | Windows_98 | Windows_NT | Windows_ME | CYGWIN*)
  57     PATHSEP=";"
  58     FILESEP="\\"
  59     DFILESEP=$FILESEP$FILESEP
  60     TMP_FILE=${TESTCLASSES}${FILESEP}${TESTCLASS}.sed.tmpfile
  61 
  62 cat <<EOF > ${TMP_FILE}0
  63 s^@TEST-SRC@/^${TESTCLASSES}${DFILESEP}^g
  64 EOF
  65     # Need to put double backslash in the .properties files
  66     cat ${TMP_FILE}0 | sed -e 's^\\\\^ZZZZ^g' | \




  26 # or .access files from a list of input .in files.
  27 #
  28 # Source in this GeneratePropertyPassword.sh and call the function
  29 # generatePropertyPasswordFiles.
  30 # Call restoreFilePermissions to restore file permissions after the test completes
  31 #
  32 
  33 
  34 OS=`uname -s`
  35 UMASK=`umask`
  36 
  37 case $OS in
  38 CYGWIN_NT*)
  39     OS="Windows_NT"
  40     if [ -z "$SystemRoot" ] ;  then
  41         SystemRoot=`cygpath $SYSTEMROOT`
  42     fi
  43 esac
  44 
  45 case $OS in
  46 Linux | Darwin | AIX )
  47     PATHSEP=":"
  48     FILESEP="/"
  49     DFILESEP=$FILESEP
  50     TMP_FILE=${TESTCLASSES}${FILESEP}${TESTCLASS}.sed.tmpfile
  51 
  52 cat <<EOF > ${TMP_FILE}
  53 s^@TEST-SRC@/^${TESTCLASSES}${DFILESEP}^g
  54 EOF
  55     ;;
  56 Windows_95 | Windows_98 | Windows_NT | Windows_ME | CYGWIN*)
  57     PATHSEP=";"
  58     FILESEP="\\"
  59     DFILESEP=$FILESEP$FILESEP
  60     TMP_FILE=${TESTCLASSES}${FILESEP}${TESTCLASS}.sed.tmpfile
  61 
  62 cat <<EOF > ${TMP_FILE}0
  63 s^@TEST-SRC@/^${TESTCLASSES}${DFILESEP}^g
  64 EOF
  65     # Need to put double backslash in the .properties files
  66     cat ${TMP_FILE}0 | sed -e 's^\\\\^ZZZZ^g' | \


< prev index next >