From 0d737af02d0b27bb4d9fbb453f09c293036d1a39 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 17 May 2022 21:32:43 -0400 Subject: initial commit --- 2-upload-srpms.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 2-upload-srpms.sh (limited to '2-upload-srpms.sh') diff --git a/2-upload-srpms.sh b/2-upload-srpms.sh new file mode 100755 index 0000000..3a78ba1 --- /dev/null +++ b/2-upload-srpms.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# File: 2-upload-srpms.sh +# Author: bgstack15 +# SPDX-License-Identifer: GPL-3.0 +# Startdate: 2022-05-17 11:54 +# Title: Upload SRPMs to copr +# Project: build-radicale-centos7 +# Purpose: upload the generated srpms to copr in order +# History: +# Improve: +# Reference: +# Dependencies: +# valid ~/.config/copr for copr authentication +# Documentation: +# README.md + +SCRIPTDIR="$( dirname "$( readlink -f "${0}" )" )" +. "${SCRIPTDIR}/lib.sh" +set -x +file_coverage=~/rpmbuild/SRPMS/"$( get_latest ~/rpmbuild/SRPMS "python-coverage*.src.rpm" )" +file_dateutil=~/rpmbuild/SRPMS/"$( get_latest ~/rpmbuild/SRPMS "python-dateutil*.src.rpm" )" +file_vobject=~/rpmbuild/SRPMS/"$( get_latest ~/rpmbuild/SRPMS "python-vobject*.src.rpm" )" +file_nose=~/rpmbuild/SRPMS/"$( get_latest ~/rpmbuild/SRPMS "python-nose*.src.rpm" )" +file_passlib=~/rpmbuild/SRPMS/"$( get_latest ~/rpmbuild/SRPMS "python-passlib*.src.rpm" )" +file_radicale=~/rpmbuild/SRPMS/"$( get_latest ~/rpmbuild/SRPMS "radicale*.src.rpm" )" + +# By omitting the --nowait, we can cause the background jobs to delay so we +# operate in the correct order. +copr-cli build "${COPR_REPO}" "${file_coverage}" & job_coverage=$! +copr-cli build "${COPR_REPO}" "${file_dateutil}" & job_dateutil=$! +wait ${job_dateutil} && { copr-cli build "${COPR_REPO}" "${file_vobject}" & job_vobject=$! ; } +wait ${job_coverage} && { copr-cli build "${COPR_REPO}" "${file_nose}" & job_nose=$! ; } +wait ${job_nose} && { copr-cli build "${COPR_REPO}" "${file_passlib}" & job_passlib=$! ; } +wait ${job_passlib} ${job_vobject} && { copr-cli build "${COPR_REPO}" "${file_radicale}" & job_radicale=$! ; } + +echo "DONE" -- cgit