#!/usr/bin/bash -e # args: version release VERSION=$1 RELEASE=$2 OVR="${VERSION}-${RELEASE}" rpm2cpio openssl-${OVR}.src.rpm |cpio -id rm -fr openssl-${VERSION} tar xf openssl-${VERSION}-hobbled.tar.gz rm openssl.spec pushd openssl-${VERSION} git init git config user.email "openssl-fips-provider-build@redhat.com" git config user.name "openssl-fips-provider build" git add . git commit -m "init commit" --quiet git apply -p1 ../*.patch cp ../ec_curve.c crypto/ec/ cp ../ectest.c test/