equal
deleted
inserted
replaced
1 #!/bin/ksh |
1 #!/bin/ksh |
2 # |
2 # |
3 # Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. |
3 # Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 # |
5 # |
6 # This code is free software; you can redistribute it and/or modify it |
6 # This code is free software; you can redistribute it and/or modify it |
7 # under the terms of the GNU General Public License version 2 only, as |
7 # under the terms of the GNU General Public License version 2 only, as |
8 # published by the Free Software Foundation. |
8 # published by the Free Software Foundation. |
44 |
44 |
45 jdk=$1 |
45 jdk=$1 |
46 shift |
46 shift |
47 OS=`uname` |
47 OS=`uname` |
48 |
48 |
49 if [ "$OS" != "Linux" ]; then |
|
50 OPTIONS="-Dsun.jvm.hotspot.debugger.useProcDebugger" |
|
51 fi |
|
52 |
|
53 javacp=$jdk/lib/sa-jdi.jar:./workdir |
49 javacp=$jdk/lib/sa-jdi.jar:./workdir |
54 |
50 |
55 mkdir -p workdir |
51 mkdir -p workdir |
56 if [ SASanityChecker.java -nt ./workdir/SASanityChecker.class ] ; then |
52 if [ SASanityChecker.java -nt ./workdir/SASanityChecker.class ] ; then |
57 $jdk/bin/javac -d ./workdir -classpath $javacp SASanityChecker.java |
53 $jdk/bin/javac -d ./workdir -classpath $javacp SASanityChecker.java |