2018-07-17 10:56:32 +00:00
|
|
|
#!/bin/bash -x
|
|
|
|
# this file contains defaults for currently generated source tarballs
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# OpenJDK from Shenandoah project
|
|
|
|
export PROJECT_NAME="shenandoah"
|
|
|
|
export REPO_NAME="jdk11"
|
2019-06-21 12:04:04 +00:00
|
|
|
# warning, clonning without shenadnaoh prefix, you will clone pure jdk - thus without shenandaoh GC
|
|
|
|
export VERSION="shenandoah-jdk-11.0.3+7"
|
2018-07-17 10:56:32 +00:00
|
|
|
export COMPRESSION=xz
|
|
|
|
# unset tapsets overrides
|
|
|
|
export OPENJDK_URL=""
|
|
|
|
export TO_COMPRESS=""
|
|
|
|
# warning, filename and filenameroot creation is duplicated here from generate_source_tarball.sh
|
|
|
|
export FILE_NAME_ROOT=${PROJECT_NAME}-${REPO_NAME}-${VERSION}
|
|
|
|
FILENAME=${FILE_NAME_ROOT}.tar.${COMPRESSION}
|
|
|
|
|
|
|
|
if [ ! -f ${FILENAME} ] ; then
|
|
|
|
echo "Generating ${FILENAME}"
|
|
|
|
sh ./generate_source_tarball.sh
|
|
|
|
else
|
|
|
|
echo "exists exists exists exists exists exists exists "
|
|
|
|
echo "reusing reusing reusing reusing reusing reusing "
|
|
|
|
echo ${FILENAME}
|
|
|
|
fi
|
|
|
|
|
|
|
|
set +e
|
|
|
|
|
|
|
|
major=`echo $REPO_NAME | sed 's/[a-zA-Z]*//g'`
|
|
|
|
build=`echo $VERSION | sed 's/.*+//g'`
|
|
|
|
name_helper=`echo $FILENAME | sed s/$major/'%{majorver}'/g `
|
|
|
|
name_helper=`echo $name_helper | sed s/$build/'%{buildver}'/g `
|
|
|
|
echo "align specfile acordingly:"
|
|
|
|
echo " sed 's/^Source0:.*/Source0: $name_helper/' -i *.spec"
|
|
|
|
echo " sed 's/^Source8:.*/Source8: $TAPSET/' -i *.spec"
|
|
|
|
echo " sed 's/^%global buildver.*/%global buildver $build/' -i *.spec"
|
2018-07-17 12:52:38 +00:00
|
|
|
echo " sed 's/Release:.*/Release: 1%{?dist}/' -i *.spec"
|
2018-07-17 10:56:32 +00:00
|
|
|
echo "and maybe others...."
|
|
|
|
echo "you should fedpkg/rhpkg new-sources $TAPSET $FILENAME"
|
|
|
|
echo "you should fedpkg/rhpkg prep --arch XXXX on all architectures: x86_64 i386 i586 i686 ppc ppc64 ppc64le s390 s390x aarch64 armv7hl"
|
|
|
|
|