#!/bin/bash
# Copyright 2015 Red Hat Inc., Durham, North Carolina.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
s="@CMAKE_SOURCE_DIR@"
export SCAP_WORKBENCH_PKEXEC_OSCAP_PATH=$s/scap-workbench-pkexec-oscap.sh
export SCAP_WORKBENCH_RPM_EXTRACT_PATH=$s/scap-workbench-rpm-extract.sh
export SCAP_WORKBENCH_ICON=$s/share/pixmaps/scap-workbench.png
export SCAP_WORKBENCH_SHARE=$s/share/scap-workbench
export SCAP_WORKBENCH_DOC=$s/doc
if [[ "`uname`" == "Darwin" ]]; then
# MacOS X doesn't have ssh-askpass so we have to provide our own
export SSH_ASKPASS=$s/scap-workbench-osx-ssh-askpass.sh
fi
exec "$@"