Simple to use OpenPGP API based on Bouncycastle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
827 B

#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2021 Paul Schaub <>
# SPDX-License-Identifier: Apache-2.0
# Pretty fancy method to get reliable the absolute path of a shell
# script, *even if it is sourced*. Credits go to GreenFox on
# stackoverflow:
pushd . > /dev/null
while([ -h "${SCRIPTDIR}" ]); do
cd "`dirname "${SCRIPTDIR}"`"
SCRIPTDIR="$(readlink "`basename "${SCRIPTDIR}"`")";
cd "`dirname "${SCRIPTDIR}"`" > /dev/null
popd > /dev/null
BASEDIR="$(cd ${SCRIPTDIR}/.. && pwd)"
printf -v var "'%s', " "$@"
exec "${BASEDIR}/gradlew" run --quiet -PappArgs="[$var]"