-
Notifications
You must be signed in to change notification settings - Fork 234
Add support for slim builds and refactor scripts to have config files. #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nitpicks
build_latest.sh
Outdated
#adoptopenjdk/openjdk${version}-openj9:${arch}-${os}-${rel}-nightly | ||
for os in ${oses} | ||
#adoptopenjdk/openjdk${version}-openj9:${arch}-${os}-${rel}-nightly-slim | ||
for vm in ${avail_jvms} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we extract more logic to functions?
generate_manifest_script.sh
Outdated
rtags=$(echo ${rawtags} | sed "s/{{ JDK_${build}_VER }}/${rel}/gI; s/{{ OS }}/${os}/gI;"); | ||
echo ${rtags} | sed "s/{{ *ARCH *}}/{{ARCH}}/" | | ||
# Separate the arch and the generic alias tags | ||
awk '{ a=0; n=0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace
generate_manifest_script.sh
Outdated
srepo=${srepo}-${vm} | ||
fi | ||
echo "done" | ||
for typ in ${types} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type
to type
:-)
@@ -0,0 +1,43 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license header
@@ -0,0 +1,33 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license header
slim-java.sh
Outdated
fi | ||
} | ||
|
||
# We only support 64 bit builds now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to extract stuff into functions (from here down)
slim-java.sh
Outdated
# 1.1. Parse arguments | ||
argc=$# | ||
if [ ${argc} != 1 ]; then | ||
echo " Usage: `basename $0` IBM-full-JRE-path" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IBM?
slim-java.sh
Outdated
pushd ${root}/rt_class >/dev/null | ||
jar -xf ${root}/jre/lib/rt.jar | ||
mkdir -p ${root}/rt_remaining_class | ||
remainingClasses='com/sun/java/swing/plaf/motif/MotifLookAndFeel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth extracting these long lists to another import file
@karianna Thanks for the review ! Have refactored the scripts to incorporate your comments, please take a look, Thanks |
Uh oh!
There was an error while loading. Please reload this page.