File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 4
4
cd " $( dirname ${BASH_SOURCE[0]} ) "
5
5
source config.sh
6
6
7
- # clone the root project
8
- hg clone " $JAVA_REPO " " $JDKDIR "
7
+ if [ ! -d " $JDKDIR " ]; then
9
8
10
- # enter the jdk repo
11
- cd " $JDKDIR "
9
+ # clone the root project
10
+ hg clone " $JAVA_REPO " " $JDKDIR "
12
11
13
- # clone the rest of the tree, if needed
14
- if [ -f " ./get_source.sh" ]; then
15
- bash ./get_source.sh
16
- fi
12
+ # enter the jdk repo
13
+ cd " $JDKDIR "
14
+
15
+ # clone the rest of the tree, if needed
16
+ if [ -f " ./get_source.sh" ]; then
17
+ bash ./get_source.sh
18
+ fi
17
19
18
- # apply the EV3-specific patches
19
- patch -p1 -i " $SCRIPTDIR /$PATCHVER .patch"
20
+ # apply the EV3-specific patches
21
+ patch -p1 -i " $SCRIPTDIR /$PATCHVER .patch"
20
22
23
+ else
24
+ echo " Directory for JDK repository exists, assuming everything has been done already." 2>&1
25
+ fi
You can’t perform that action at this time.
0 commit comments