Add certificate generation

This commit is contained in:
Patrick Toal
2019-08-31 19:22:32 -04:00
parent 1a207029eb
commit fa2d28367a
37 changed files with 2315 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
#!/bin/bash -xe
# remove any previous artifacts
rm -rf output
rm -f ./*tar.gz
# Get the tarball
./build.sh dist
# create the src.rpm
rpmbuild \
-D "_srcrpmdir $PWD/output" \
-D "_topmdir $PWD/rpmbuild" \
-ts ./*.gz
# install any build requirements
yum-builddep output/*src.rpm
# create the rpms
rpmbuild \
-D "_rpmdir $PWD/output" \
-D "_topmdir $PWD/rpmbuild" \
--rebuild output/*.src.rpm
[[ -d exported-artifacts ]] || mkdir -p exported-artifacts
find output -iname \*rpm -exec mv "{}" exported-artifacts/ \;
mv *.tar.gz exported-artifacts