PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /bin/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //bin/xmvn-builddep

#!/bin/bash
set -e

case "${1}" in
    -h|--help)
	echo "Usage: ${0} [build.log | Koji-task-ID]"
	exit 0
	;;
esac


if [ ${#} -eq 0 ]; then
    cfg=$(basename $(readlink -f /etc/mock/default.cfg))
    set "/var/lib/mock/${cfg%.cfg}/result/build.log"
fi

case "${1}" in
    [0-9][0-9][0-9][0-9][0-9][0-9][0-9])
	cmd="curl -s"
	p="${1#???}"
	p="${p#0}"
	p="${p#0}"
	p="${p#0}"
	set "http://kojipkgs.fedoraproject.org/work/tasks/${p}/${1}/build.log"
	;;
    *)
	if [ -f "${1}" ]; then
	    cmd="cat"
	else
	    echo "${0}: Unable to open file: ${1}" >&2
	    exit 1
	fi
	;;
esac

$cmd "${1}" \
    | sed -n '
        /^-----BEGIN MAVEN BUILD DEPENDENCIES-----$/ {
         :l
          n
          /^-----END MAVEN BUILD DEPENDENCIES-----$/ {
            s/.*//
            x
            s/\n//g
            p
            b
          }
          H
          bl
        }' \
    | tail -1 \
    | base64 -d \
    | zcat \
    | /usr/libexec/platform-python /usr/share/java-utils/builddep.py /dev/stdin \
    | sort -u \
    | (echo maven-local && cat) \
    | sed 's/./BuildRequires:  &/' \