#!/bin/bash # Copyright (C) 2013, 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 # : ${COMMIT_MSG:="New baseline"} : ${CLEANUP:=0} : ${URL:=http://snapshots.linaro.org/openembedded/sources} version=aarch64-port snapshot="openjdk8-${version}-snapshot" if [ $CLEANUP -eq 1 ]; then git reset --hard git clean -f -d -x fi set -eu if [ ! -f ${snapshot}.tar.bz2 ]; then wget --quiet ${URL}/${snapshot}.tar.bz2 fi if [ ! -f ${snapshot}-prebuilt-classes.tar.bz2 ]; then wget --quiet ${URL}/${snapshot}-prebuilt-classes.tar.bz2 fi if [ -d $snapshot ]; then git rm -rf $snapshot 2>/dev/null || echo "Success!" fi tar axf ${snapshot}-prebuilt-classes.tar.bz2 tar axf ${snapshot}.tar.bz2 ${snapshot}/jdk/test ${snapshot}/hotspot/test shopt -s globstar for i in known-problems/${snapshot}/**/*.txt; do echo "Adding $i >> ${i/known-problems\//}" cat $i >> ${i/known-problems\//} done git add ${snapshot}/jdk/test git add ${snapshot}/hotspot/test git add ${snapshot}/JTwork