#10 Add a helper script to build in copr
Merged 5 years ago by rhea. Opened 5 years ago by omajid.
dotnet-sig/ omajid/dotnet-2-1 helper-script  into  master

file modified
+2 -3
@@ -55,7 +55,7 @@ 

     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 @@ 

      - `git remove # old files, such as old patches`

      - `git commit -a`

      - `git push`

-     - `fedpkg dotnet srpm`

-     - `copr-cli build @dotnet-sig/dotnet <path-to-srpm>`

+     - `./copr-build`

  

  8. If it fails, update spec file/patches and rebuild with the same set

     of steps.

file added
+11
@@ -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}"

Automate a two-step manual process into one step.

Pull-Request has been merged by rhea

5 years ago
Metadata