#!/bin/bash

prog=${0##*/}
progdir=$(dirname "$0")

fail () {
    echo "$prog:" "$@" >&2
    exit 1
}

usage () {
    echo "Usage: $prog ..." >&2
    exit $1
}

is_true () {
    case "${1-}" in
        [yY]*|[tT]*|1|*true) return 0 ;;
        [nN]*|[fF]*|0|*false) return 1 ;;
    esac
    return 2  # unknown
}

if [[ $1 == -h || $1 == --help ]]; then
    usage 0
fi

set -o nounset
IFS=$'\n\t'
is_true "${DEBUG-}" && export PS4='${LINENO}: ' && set -x  # https://stackoverflow.com/a/17805088

[[ $(id -u) -eq 0 ]] || { echo "needs root"; exit 1; }

cd /tmp
yum install -y python3 python3-rpm
git clone --recursive https://github.com/matyasselmeci/osg-test
cd osg-test/osg-ca-generator
make install


# vim:et:sw=4:sts=4:ts=8
