Last active
February 12, 2021 19:48
-
-
Save jarryDk/5a87ed9d6f4f648fc3d8347e2d6edc3f to your computer and use it in GitHub Desktop.
Get ready to build jdk on Fedora
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 | |
# | |
# Get ready to build openjdk/jdk on Fedora | |
# | |
# You can easilly forget fontconfig-devel if you follow the builder guide | |
# https://github.com/openjdk/jdk/blob/master/doc/building.md | |
# | |
sudo dnf install \ | |
freetype-devel \ | |
cups-devel \ | |
libXtst-devel \ | |
libXt-devel \ | |
libXrender-devel \ | |
libXrandr-devel \ | |
libXi-devel \ | |
alsa-lib-devel \ | |
libffi-devel \ | |
autoconf \ | |
gcc-c++ \ | |
fontconfig-devel -y | |
OPENJDK_JDK=$HOME/git/openjdk/jdk | |
if [ -d $OPENJDK_JDK ]; then | |
echo "We have the folder $OPENJDK_JDK" | |
cd $OPENJDK_JDK | |
git pull | |
else | |
echo "We do not have the folder $OPENJDK_JDK" | |
mkdir -p $OPENJDK_JDK | |
git clone https://github.com/openjdk/jdk.git $OPENJDK_JDK | |
git config pull.rebase false | |
bash configure | |
fi | |
echo "" | |
echo "make clean" | |
echo "make images" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment