summaryrefslogtreecommitdiffstats
path: root/openjdk7/build/BUILDING.txt
blob: b8ed8096663c9e5935eab4a5973e5085d00133f0 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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
# egrep '(^CORBA_CHANGESET|^HOTSPOT_CHANGESET|^JAXP_CHANGESET|^JAXWS_CHANGESET|^JDK_CHANGESET|^LANGTOOLS_CHANGESET|^OPENJDK_CHANGESET|^CACAO_VERSION|^CACAO_BASE_URL|^JAMVM_VERSION|^JAMVM_BASE_URL|^ICEDTEA_MAJOR|^ICEDTEA_BRANCH|^ICEDTEA_PREFIX|^ICEDTEA_HG_URL|^DROP_URL)' Makefile.in
#
# 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="icedtea7"
ICEDTEA_BRANCH="2.6.28"
ICEDTEA_VERSION="2.6.28"
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

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

# Get supporting sources:
wget ${SUPPURL}/openjdk.tar.bz2 -O openjdk_icedtea-${ICEDTEA_VERSION}.tar.bz2
wget ${SUPPURL}/corba.tar.bz2 -O corba_icedtea-${ICEDTEA_VERSION}.tar.bz2 
wget ${SUPPURL}/jaxp.tar.bz2 -O jaxp_icedtea-${ICEDTEA_VERSION}.tar.bz2 
wget ${SUPPURL}/jdk.tar.bz2 -O jdk_icedtea-${ICEDTEA_VERSION}.tar.bz2 
wget ${SUPPURL}/langtools.tar.bz2 -O langtools_icedtea-${ICEDTEA_VERSION}.tar.bz2 
wget ${SUPPURL}/jaxws.tar.bz2 -O jaxws_icedtea-${ICEDTEA_VERSION}.tar.bz2 
wget ${SUPPURL}/hotspot.tar.bz2 -O hotspot_icedtea-${ICEDTEA_VERSION}.tar.bz2 

# Get these hash values from Makefile.in:
tar xvf icedtea-${ICEDTEA_VERSION}.tar.xz icedtea-${ICEDTEA_VERSION}/Makefile.in
mv icedtea-${ICEDTEA_VERSION}/Makefile.in .
rmdir icedtea-${ICEDTEA_VERSION}
egrep '^CACAO_VERSION|^JAMVM_VERSION' Makefile.in 
CACAO_HASH=$(grep '^CACAO_VERSION' Makefile.in |tr -d ' ' |cut -d= -f2) 
JAMVM_HASH=$(grep '^JAMVM_VERSION' Makefile.in |tr -d ' ' |cut -d= -f2) 
wget ${DROPURL}/cacao/cacao-${CACAO_HASH}.tar.xz -O cacao_icedtea-${ICEDTEA_VERSION}.tar.xz
wget ${DROPURL}/jamvm/jamvm-${JAMVM_HASH}.tar.gz -O jamvm_icedtea-${ICEDTEA_VERSION}.tar.gz

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 OpenJDK7 update $JDKU build $JDKB"
echo ==========================================================================