#!/bin/bash -x # this file contains defaults for currently generated source tarballs if [ ! "x$PR2126" = "x" ] ; then if [ ! -f "$PR2126" ] ; then echo "You have specified PR2126 as $PR2126 but it does not exists. exiting" exit 1 fi fi set -e if [ "x$PROJECT_NAME" = "x" ] ; then PROJECT_NAME="jdk" fi if [ "x$REPO_NAME" = "x" ] ; then REPO_NAME="jdk11" fi if [ "x$VERSION" = "x" ] ; then VERSION="jdk-11+20" fi if [ "x$COMPRESSION" = "x" ] ; then # rhel 5 needs tar.gz COMPRESSION=xz fi if [ "x$FILE_NAME_ROOT" = "x" ] ; then FILE_NAME_ROOT=${PROJECT_NAME}-${REPO_NAME}-${VERSION} fi MAIN_FILENAME=${FILE_NAME_ROOT}.tar.${COMPRESSION} if [ ! -f ${MAIN_FILENAME} ] ; then echo "Generating ${MAIN_FILENAME}" . ./generate_openjdk_source_tarball.sh else echo "exists exists exists exists exists exists exists " echo "reusing reusing reusing reusing reusing reusing " echo ${MAIN_FILENAME} fi # generate shenandoah hotspot if [ "x$PROJECT_NAME" = "x" ] ; then PROJECT_NAME="shenandoah" fi if [ "x$REPO_NAME" = "x" ] ; then REPO_NAME="jdk" fi if [ "x$VERSION" = "x" ] ; then VERSION="4f5549ec27fb" fi if [ "x$COMPRESSION" = "x" ] ; then # rhel 5 needs tar.gz COMPRESSION=xz fi if [ "x$FILE_NAME_ROOT" = "x" ] ; then FILE_NAME_ROOT=${PROJECT_NAME}-${REPO_NAME}-${VERSION} fi SHENANDOAH_FILENAME=${FILE_NAME_ROOT}.tar.${COMPRESSION} if [ ! -f ${SHENANDOAH_FILENAME} ] ; then echo "Generating ${SHENANDOAH_FILENAME}" . ./generate_openjdk_source_tarball.sh else echo "exists exists exists exists exists exists exists " echo "reusing reusing reusing reusing reusing reusing " echo ${SHENANDOAH_FILENAME} fi TAPSET=`sh generate_tapsets.sh | tail -n 1` echo "align specfile acordingly" echo "you should fedpkg/rhpkg new-sources $TAPSET $SHENANDOAH_FILENAME $MAIN_FILENAME" echo "you should fedpkg/rhpkg prep --arch XXXX on all architectures: x86_64 i386 i586 i686 ppc ppc64 ppc64le s390 s390x aarch64 armv7hl"