X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=mockspec;fp=mockspec;h=0000000000000000000000000000000000000000;hp=6f32dbca09afe7773d17a49d06a208fc1baab45e;hb=0732783d35a1dd9474fae2b6881f2cfcb31fa76b;hpb=92c4b53c476446e2e7475d70d54a8590bc0e6298 diff --git a/mockspec b/mockspec deleted file mode 100755 index 6f32dbc..0000000 --- a/mockspec +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# start mock session with build deps from given .spec file -OS="${OS:-default}" -set -eu -[ -d "$(mock -r $OS --print-root-path)" ] || mock -r $OS --init -specfile="$1" -shift -mock -r $OS -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' "$specfile") $@