Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/bin/xmvn-builddep
#!/bin/sh
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 \
    | python /usr/share/java-utils/builddep.py /dev/stdin \
    | sort -u \
    | (echo maven-local && cat) \
    | sed 's/./BuildRequires:  &/' \

ZeroDay Forums Mini