diff --git a/.copr/Makefile b/.copr/Makefile index 056af02ae..44de3a98c 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -1,9 +1,2 @@ srpm: - dnf install -y git - git config --global --add safe.directory $$PWD - git config --global --add safe.directory $$PWD/deps/freetype/freetype2 - git config --global --add safe.directory $$PWD/deps/freetype/libpng - git config --global --add safe.directory $$PWD/deps/freetype/zlib - git config --global --add safe.directory $$PWD/deps/harfbuzz/harfbuzz - COPR_SRPM=$(outdir) ./ci/source-archive.sh - COPR_SRPM=$(outdir) ./ci/deploy.sh + COPR_SRPM=$(outdir) ./ci/copr-build.sh diff --git a/ci/copr-build.sh b/ci/copr-build.sh new file mode 100755 index 000000000..f96682d7f --- /dev/null +++ b/ci/copr-build.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -x +set -e + +env + +command -v git || dnf install -y git + +if test -d /builddir/build ; then + COPR_BUILD_DIR=/builddir/build +fi + +git config --global --add safe.directory $$PWD +git config --global --add safe.directory $$PWD/deps/freetype/freetype2 +git config --global --add safe.directory $$PWD/deps/freetype/libpng +git config --global --add safe.directory $$PWD/deps/freetype/zlib +git config --global --add safe.directory $$PWD/deps/harfbuzz/harfbuzz + +./ci/source-archive.sh +./ci/deploy.sh +