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