From 0f5ffe63f60835887a3b27951f35c1b3784f514f Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Oct 15 2018 22:23:35 +0000 Subject: Add a helper script to build in copr --- diff --git a/README.md b/README.md index 9389479..4db3077 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Please report any issues [here](https://pagure.io/dotnet-sig/packaging-issues/ne the `Source` tag corresponds to the new tarball name, if there is a new tarball. -5. Do local builds +5. Do local builds, not under a git directory: - `fedpkg local --builddir ../dotnet-2-1-build` @@ -75,8 +75,7 @@ Please report any issues [here](https://pagure.io/dotnet-sig/packaging-issues/ne - `git remove # old files, such as old patches` - `git commit -a` - `git push` - - `fedpkg dotnet srpm` - - `copr-cli build @dotnet-sig/dotnet ` + - `./copr-build` 8. If it fails, update spec file/patches and rebuild with the same set of steps. diff --git a/copr-build b/copr-build new file mode 100755 index 0000000..6d431dc --- /dev/null +++ b/copr-build @@ -0,0 +1,11 @@ +#!/bin/bash + +set -euo pipefail + +set -x + +fedpkg srpm 2>&1 | tee fedpkg.output + +srpm_name=$(grep 'Wrote: ' fedpkg.output | cut -d' ' -f 2) + +copr-cli build @dotnet-sig/dotnet "${srpm_name}"