Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ssato committed Jan 8, 2018
1 parent d1db3bc commit 6a31fa1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkg/copr-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /bin/bash
# Build SRPM and submit new build to copr.
#
# References:
# - https://developer.fedoraproject.org/deployment/copr/copr-cli.html
# - http://copr-rest-api.readthedocs.io/en/latest/Resources/build.html#submit-new-build
#
set -ex

curdir=${0%/*}
topdir=${curdir}/../
srpmdir=${topdir}/dist

copr_project=ssato/python-anyconfig
srpm=$(ls -1 ${srpmdir:?}/*.src.rpm | sort -Vr | head -n 1) # FIXME

test -f ~/.config/copr
copr-cli build ${copr_project:?} ${srpm:?}

# vim:sw=4:ts=4:et:

0 comments on commit 6a31fa1

Please sign in to comment.