Created
December 6, 2017 01:31
-
-
Save chrisdennis/712154a35153d2f5b38c5b3ae7d803bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function install { | |
rm -Rf ~/Library/Java/JavaVirtualMachines/jdk-10.jdk | |
echo -n "Installing..." && cp -R build/macosx-x86_64-normal-server-release/images/jdk-bundle/jdk-10.jdk ~/Library/Java/JavaVirtualMachines/ && echo "done" | |
} | |
force_build=false | |
while getopts f opt; do | |
case $opt in | |
f) force_build=true | |
;; | |
*) exit 1 | |
;; | |
esac | |
done | |
if (hg incoming && read -n 1 -p "Rebuild with the above changes (y/n)? " rebuild && echo && [ "$rebuild" = "y" ] && hg pull -u); then | |
make dist-clean | |
. ./configure --with-boot-jdk=`/usr/libexec/java_home -v 9` --with-version-opt=`id -un`.`hg identify -i` --disable-warnings-as-errors && \ | |
make images && install | |
elif $force_build; then | |
make images && install | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment