export_modules revision 3bf4bd3347c2bc3bc7c6b24672096f514235ad76
#
# Create a tar archive containing the sources of the vboxdrv kernel module
#
# Copyright (C) 2007 InnoTek Systemberatung GmbH
#
# 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 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.
#
# If you received this file as part of a commercial VirtualBox
# distribution, then only the terms of your commercial VirtualBox
# license agreement apply instead of the previous paragraph.
#
if [ -z "$1" ]; then
echo "Usage: $0 <filename.tar.gz>"
echo " Export VirtualBox kernel modules to <filename.tar.gz>"
exit 1
fi
VBOX_VERSION_MAJOR=`sed -e "s/^ *VBOX_VERSION_MAJOR *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk`
VBOX_VERSION_MINOR=`sed -e "s/^ *VBOX_VERSION_MINOR *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk`
VBOX_VERSION_BUILD=`sed -e "s/^ *VBOX_VERSION_BUILD *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk`
# Temporary path for creating the modules, will be removed later
# Create auto-generated version file, needed by all modules
echo "#define VBOX_VERSION_STRING \"$VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD\"" >> $PATH_TMP/version-generated.h
# vboxdrv (VirtualBox host kernel module)
for f in $FILES_VBOXDRV_NOBIN; do
done
for f in $FILES_VBOXDRV_BIN; do
done
# Only temporary, omit from archive
# Create the archive
# Remove the temporary directory