megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
view app-misc/qutescoop/files/execution-wrapper.sh @ 241:6aca0fc3b7cd
[sync] imported 56b6e9f..47eab67 from upstream
commit 47eab67b371f2341a80427921842a7115d2d99ce
Author: Daniel Neugebauer <dneuge@energiequant.de>
Date: Sun Feb 6 13:40:59 2022 +0100
app-misc/qutescoop: EAPI 8
commit ad7a1c6f801a3e9dd7feff6f14a4fc47c50b330c
Author: Daniel Neugebauer <dneuge@energiequant.de>
Date: Sun Feb 6 13:25:58 2022 +0100
app-misc/qutescoop: static commit revision for 2.2_pre20201118 (masked)
commit 9c3a6eaf217e94a3162c290b78b28c675b69d2db
Author: Daniel Neugebauer <dneuge@energiequant.de>
Date: Sun Feb 6 12:58:08 2022 +0100
app-misc/qutescoop: copied last locally built version to snapshot 2.2_pre20201118
author | Migration Sync <gentoo-overlay@megacoffee.net> |
---|---|
date | Sun, 06 Feb 2022 12:45:02 +0000 |
parents | 81f94c1dfb45 |
children |
line wrap: on
line source
#!/bin/bash echo "=== messages below come from a wrapper script installed by the ebuild ===" destdir="${HOME}/.local/share/QuteScoop/QuteScoop" templatedir="/usr/share/QuteScoop/data-template" actualbin="/usr/share/QuteScoop/bin/QuteScoop" function die { echo $@ >&2 exit 1 } [[ $EUID -ne 0 ]] || die "Refusing to run as root." if [[ ! -e "$destdir" ]]; then echo "User is missing ${destdir}, copying from template ${templatedir} for first run..." [[ -d "$templatedir" ]] || die "QuteScoop data template directory ${templatedir} does not exist" mkdir -p "$destdir" || die "Failed to create destination directory ${destdir}" cp -R $templatedir/* "$destdir/" || die "Failed to copy from template ${templatedir} to destination ${destdir}" echo "Done." fi echo "=== messages below come from the original QuteScoop binary ===" ${actualbin} $@