postflight revision 343053a42dedb94c8ef5534fff89c72384adf94d
#
# Copyright (C) 2007-2010 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
#
# Correct the ownership of the directories in case there
# was an existing installation.
#
#
# Select the right architecture.
#
if test "$MY_ARCH" = "x86_64"; then
MY_ARCH="amd64"
else
MY_ARCH="x86"
fi
set -e
do
exit 1;
fi
done
#
# Install the Python bindings
#
PYTHON="python python2.3 python2.5 python2.6"
if [ -e "${VBOX_INSTALL_PATH}/sdk/installer/vboxapisetup.py" ]; then
# Install the python bindings if python is in the path
echo 1>&2 "Python found: ${p}, installing bindings..."
# Pass install path via environment
export VBOX_INSTALL_PATH
fi
done
fi
#
# Install any custom files
#
CPDIR="${CP} -R"
if [ -d "${DATAPATH}/.custom" ]; then
echo 1>&2 "Copy ${DATAPATH}/.custom to ${VBOX_INSTALL_PATH}...";
${CPDIR} "${DATAPATH}/.custom/" "${VBOX_INSTALL_PATH}/custom"
fi
exit 0;