7120773
#!/bin/bash -x
7120773
#  this file contains defaults for currently generated source tarballs
7120773
7120773
set -e
7120773
7120773
# TAPSET
7120773
export PROJECT_NAME="hg"
7120773
export REPO_NAME="icedtea8"
7120773
export VERSION="9d464368e06d"
7120773
export COMPRESSION=xz
7120773
export OPENJDK_URL=http://icedtea.classpath.org
7120773
export FILE_NAME_ROOT=${PROJECT_NAME}-${REPO_NAME}-${VERSION}
7120773
export TO_COMPRESS="*/tapset"
7120773
# warning, filename  and filenameroot creation is duplicated here from generate_source_tarball.sh
7120773
CLONED_FILENAME=${FILE_NAME_ROOT}.tar.${COMPRESSION}
7120773
TAPSET_VERSION=3.2
7120773
TAPSET=systemtap_"$TAPSET_VERSION"_tapsets_$CLONED_FILENAME
7120773
if [ ! -f ${TAPSET} ] ; then
7120773
  if [ ! -f ${CLONED_FILENAME} ] ; then
7120773
  echo "Generating ${CLONED_FILENAME}"
7120773
    sh ./generate_source_tarball.sh
7120773
  else 
7120773
    echo "exists exists exists exists exists exists exists "
7120773
    echo "reusing reusing reusing reusing reusing reusing "
7120773
    echo ${CLONED_FILENAME}
7120773
  fi
7120773
  mv -v $CLONED_FILENAME  $TAPSET
7120773
else 
7120773
  echo "exists exists exists exists exists exists exists "
7120773
  echo "reusing reusing reusing reusing reusing reusing "
7120773
  echo ${TAPSET}
7120773
fi
7120773
7120773
# OpenJDK from Shenandoah project
7120773
export PROJECT_NAME="shenandoah"
7120773
export REPO_NAME="jdk11"
7120773
# warning, clonning without shenadnaoh suffix, you will clone pure jdk - thus without shenandaoh GC
Severin Gehwolf 6bd0c61
export VERSION="shenandoah-jdk-11.0.1+13"
7120773
export COMPRESSION=xz
7120773
# unset tapsets overrides
7120773
export OPENJDK_URL=""
7120773
export TO_COMPRESS=""
7120773
# warning, filename  and filenameroot creation is duplicated here from generate_source_tarball.sh
7120773
export FILE_NAME_ROOT=${PROJECT_NAME}-${REPO_NAME}-${VERSION}
7120773
FILENAME=${FILE_NAME_ROOT}.tar.${COMPRESSION}
7120773
7120773
if [ ! -f ${FILENAME} ] ; then
7120773
echo "Generating ${FILENAME}"
7120773
  sh ./generate_source_tarball.sh
7120773
else 
7120773
  echo "exists exists exists exists exists exists exists "
7120773
  echo "reusing reusing reusing reusing reusing reusing "
7120773
  echo ${FILENAME}
7120773
fi
7120773
7120773
set +e
7120773
7120773
major=`echo $REPO_NAME | sed 's/[a-zA-Z]*//g'`
7120773
build=`echo $VERSION | sed 's/.*+//g'`
7120773
name_helper=`echo $FILENAME | sed s/$major/'%{majorver}'/g `
7120773
name_helper=`echo $name_helper | sed s/$build/'%{buildver}'/g `
7120773
echo "align specfile acordingly:" 
7120773
echo " sed 's/^Source0:.*/Source0: $name_helper/' -i *.spec"
7120773
echo " sed 's/^Source8:.*/Source8: $TAPSET/'   -i *.spec"
7120773
echo " sed 's/^%global buildver.*/%global buildver        $build/'   -i *.spec"
d72059f
echo " sed 's/Release:.*/Release: 1%{?dist}/'   -i *.spec"
7120773
echo "and maybe others...."
7120773
echo "you should fedpkg/rhpkg new-sources $TAPSET $FILENAME"
7120773
echo "you should fedpkg/rhpkg prep --arch XXXX on all architectures: x86_64 i386 i586 i686 ppc ppc64 ppc64le s390 s390x aarch64 armv7hl"
7120773