export_modules revision 1c94c0a63ba68be1a7b2c640e70d7a06464e4fca
#
# Create a tar archive containing the sources of the Linux guest kernel
# modules
#
# Copyright (C) 2006-2007 Sun Microsystems, Inc.
#
# 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.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
# Clara, CA 95054 USA or visit http://www.sun.com if you need
# additional information or have any questions.
#
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
# vboxadd (VirtualBox guest kernel module)
for f in $FILES_VBOXADD_NOBIN; do
done
for f in $FILES_VBOXADD_BIN; do
done
# vboxvfs (VirtualBox guest kernel module for shared folders)
for f in $FILES_VBOXVFS_NOBIN; do
done
for f in $FILES_VBOXVFS_BIN; do
done
# Only temporary, omit from archive
# Create the archive
# Remove the temporary directory