blob: 1ae63a2e138b48512e5345ee3316e52fbee74b00 (
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
59
60
61
62
63
|
#!/bin/bash
# Copyright (C) 2014, Linaro Limited.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Author: Andrew McDermott <andrew.mcdermott@linaro.org>
set -eu
progname=$(basename $0)
SCRIPTPATH=$(cd $(dirname $0); pwd -P)
: ${DOWNLOAD_DIR:=/tmp/${progname}-download.$$}
tdir=$(mktemp -d /tmp/${progname}-hgrc-XXXXXX.$$)
echo "[extensions]" > $tdir/.hgrc
echo "trees=${SCRIPTPATH}/trees.py" >> $tdir/.hgrc
trap "rm -rf $tdir" EXIT
export HGRCPATH=${tdir}/.hgrc
: ${URL:=http://hg.openjdk.java.net/aarch64-port/jdk8}
if [ ! -d jdk8 ]; then
hg tclone ${URL}
else
hg --cwd jdk8 tpull
hg --cwd jdk8 tupdate
fi
pushd jdk8 >/dev/null
commit_id=$(hg identify | awk '{print $1}')
echo "jdk8-${commit_id}" > BOM
for i in corba jaxp jaxws langtools jdk hotspot nashorn; do
pushd $i >/dev/null
commit_id=$(hg identify | awk '{print $1}')
dir=$(basename $PWD)
echo "${dir}-${commit_id}" >> ../BOM
popd >/dev/null
done
popd >/dev/null
rm -rf out
mkdir -p out
[ -e jdk8/BOM ] && cat jdk8/BOM
tar -acf out/openjdk8-aarch64-port.tar.bz2 --exclude=.hg --transform='s/^jdk8/openjdk8-aarch64-port/' jdk8
ls -l out/*.bz2
md5sum out/*.bz2
|