summaryrefslogtreecommitdiffstats
path: root/openjdk/build/BUILDING.txt
blob: 2f517e8e76e0327e1096acdccef6fab1be7c8218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# You can run this script in the sources/ subdirectory to download the sources.

# -----------------------------------------------------------------------------
#
# These source URLs are constructed from reading the
# acinclude.m4 and Makefile.in of icedtea:
# egrep '(^ *JDK_UPDATE_VERSION|^ *BUILD_VERSION)' acinclude.m4
#
# In icedtea you can choose between "default" and "zero" versions
# of the VM. The zero vm is meant for ARM based systems.
# Use this command to find out the hash of the hotspot.zip
# grep default hotspot.map
#
# -----------------------------------------------------------------------------

# Check ICEDTEA_BRANCH value in Makefile.in:
ICEDTEA_MAJOR="icedtea8"
ICEDTEA_BRANCH="3.28.0"
ICEDTEA_VERSION="3.28.0"
DROPURL="http://icedtea.classpath.org/download/drops"
SUPPURL="${DROPURL}/${ICEDTEA_MAJOR}/${ICEDTEA_BRANCH}"

# Get icedtea:
wget -c http://icedtea.classpath.org/download/source/icedtea-${ICEDTEA_VERSION}.tar.xz
wget -c http://icedtea.classpath.org/download/source/icedtea-${ICEDTEA_VERSION}.tar.xz.sig

# Get supporting sources:
wget ${SUPPURL}/openjdk-git.tar.xz -O openjdk_icedtea-${ICEDTEA_VERSION}.tar.xz

# Extract Makefile.in:
tar -O -xvf icedtea-${ICEDTEA_VERSION}.tar.xz icedtea-${ICEDTEA_VERSION}/Makefile.in > Makefile.in

# Get softwareversions from acinclude.m4:
tar -O -xvf icedtea-${ICEDTEA_VERSION}.tar.xz icedtea-${ICEDTEA_VERSION}/acinclude.m4 > acinclude.m4

echo ==========================================================================
gpg --verify  icedtea-${ICEDTEA_VERSION}.tar.xz.sig 2>&1 |grep -e "^gpg: .* signature from"
echo ""
JDKU=$(grep "^ *JDK_UPDATE_VERSION" acinclude.m4 | tr -d ' ' | cut -f2 -d=)
JDKB=$(grep "^ *BUILD_VERSION" acinclude.m4 | tr -d ' ' | cut -f2 -d=)
echo "** Icedtea ${ICEDTEA_VERSION} will build OpenJDK update $JDKU build $JDKB"
echo ==========================================================================