aboutsummaryrefslogtreecommitdiff
path: root/2-upload-srpms.sh
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-05-17 21:32:43 -0400
committerB. Stack <bgstack15@gmail.com>2022-05-17 21:32:43 -0400
commit0d737af02d0b27bb4d9fbb453f09c293036d1a39 (patch)
tree9eaada241675221ee9129ebd7e1d46519df1fd6e /2-upload-srpms.sh
downloadbuild-radicale-el7-0d737af02d0b27bb4d9fbb453f09c293036d1a39.tar.gz
build-radicale-el7-0d737af02d0b27bb4d9fbb453f09c293036d1a39.tar.bz2
build-radicale-el7-0d737af02d0b27bb4d9fbb453f09c293036d1a39.zip
initial commit
Diffstat (limited to '2-upload-srpms.sh')
-rwxr-xr-x2-upload-srpms.sh36
1 files changed, 36 insertions, 0 deletions
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"
bgstack15