summaryrefslogtreecommitdiff
path: root/.copr/prepare.sh
diff options
context:
space:
mode:
authorLokesh Mandvekar <lsm5@fedoraproject.org>2022-01-25 08:09:05 -0500
committerLokesh Mandvekar <lsm5@fedoraproject.org>2022-01-25 08:27:44 -0500
commite4636ebdc84ca28cf378873435cc9a27c81756f8 (patch)
tree8eb70710585eccbc8a8d42d38d1b4ebadc4f192c /.copr/prepare.sh
parent534c4881b51b1bffaac1afcfbcfdc0dde09ccdb4 (diff)
downloadpodman-e4636ebdc84ca28cf378873435cc9a27c81756f8.tar.gz
podman-e4636ebdc84ca28cf378873435cc9a27c81756f8.tar.bz2
podman-e4636ebdc84ca28cf378873435cc9a27c81756f8.zip
Makefile: install targets independent of build
Building from source would involve separate `make` and `make install` steps. This removes a lot of unnecessary `-nobuild` targets which were otherwise needed for packaging. This commit also removes spec files for unused copr jobs. [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
Diffstat (limited to '.copr/prepare.sh')
-rw-r--r--.copr/prepare.sh39
1 files changed, 0 insertions, 39 deletions
diff --git a/.copr/prepare.sh b/.copr/prepare.sh
deleted file mode 100644
index de12a0d56..000000000
--- a/.copr/prepare.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh -euf
-set -euxo pipefail
-OS_TEST=${OS_TEST:=0}
-
-if [ ! -e /usr/bin/git ]; then
- dnf -y install git-core
-fi
-
-if [ -f $(git rev-parse --git-dir)/shallow ]; then
- git fetch --unshallow
-fi
-
-COMMIT=$(git rev-parse HEAD)
-COMMIT_SHORT=$(git rev-parse --short=8 HEAD)
-COMMIT_NUM=$(git rev-list HEAD --count)
-COMMIT_DATE=$(date +%s)
-BR="#BuildRequires: golang-bin"
-NEWBR="BuildRequires: golang-bin"
-
-
-sed "s,#COMMIT#,${COMMIT},;
- s,#SHORTCOMMIT#,${COMMIT_SHORT},;
- s,#COMMITNUM#,${COMMIT_NUM},;
- s,#COMMITDATE#,${COMMIT_DATE}," \
- contrib/spec/podman.spec.in > contrib/spec/podman.spec
-
-if [ ${OS_TEST} -eq 0 ]; then
- sed -i "s/${BR}/${NEWBR}/g" contrib/spec/podman.spec
-fi
-
-mkdir -p build/
-git archive --prefix "podman-${COMMIT_SHORT}/" --format "tar.gz" HEAD -o "build/podman-${COMMIT_SHORT}.tar.gz"
-if [ ! -d conmon ]; then
- git clone -n --quiet https://github.com/containers/conmon
-fi
-pushd conmon
-git checkout --detach d532caebc788fafdd2a305b68cd1983b4039bea4
-git archive --prefix "conmon/" --format "tar.gz" HEAD -o "../build/conmon.tar.gz"
-popd