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 44cd " $( dirname ${BASH_SOURCE[0]} ) "
55source config.sh
66
7- # clone the root project
8- hg clone " $JAVA_REPO " " $JDKDIR "
7+ if [ ! -d " $JDKDIR " ]; then
98
10- # enter the jdk repo
11- cd " $JDKDIR "
9+ # clone the root project
10+ hg clone " $JAVA_REPO " " $JDKDIR "
1211
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
1719
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"
2022
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