export_modules revision 3cdd28c6283e0f68be15a941061e1570d3151441
#
# Create a tar archive containing the sources of the vboxdrv kernel module
#
# Copyright (C) 2007 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.
#
if [ -z "$1" ]; then
echo "Usage: $0 <filename.tar.gz> [--without-hardening]"
echo " Export VirtualBox kernel modules to <filename.tar.gz>"
exit 1
fi
if [ "$2" = "--without-hardening" ]; then
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`
VBOX_SVN_REV=`sed -e 's/^ *VBOX_SVN_REV_FALLBACK *:= \+\$(patsubst *%:,, *\$Rev: *\([0-9]\+\) *\$ *) */\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_VENDOR=`sed -e 's/^ *VBOX_VENDOR *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_VENDOR_SHORT=`sed -e 's/^ *VBOX_VENDOR_SHORT *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_PRODUCT=`sed -e 's/^ *VBOX_PRODUCT *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_C_YEAR=`date +%Y`
# Temporary path for creating the modules, will be removed later
# Create auto-generated version file, needed by all modules
# Create auto-generated revision file, needed by all modules
# Create auto-generated product file, needed by all modules
# vboxdrv (VirtualBox host kernel module)
for f in $FILES_VBOXDRV_NOBIN; do
done
for f in $FILES_VBOXDRV_BIN; do
done
if [ -n "$VBOX_WITH_HARDENING" ]; then
else
fi
# vboxnetflt (VirtualBox netfilter kernel module)
for f in $VBOX_VBOXNETFLT_SOURCES; do
done
if [ -n "$VBOX_WITH_HARDENING" ]; then
else
fi
# vboxnetadp (VirtualBox network adapter kernel module)
for f in $VBOX_VBOXNETADP_SOURCES; do
done
if [ -n "$VBOX_WITH_HARDENING" ]; then
else
fi
# vboxpci (VirtualBox host PCI access kernel module)
for f in $VBOX_VBOXPCI_SOURCES; do
done
if [ -n "$VBOX_WITH_HARDENING" ]; then
else
fi
# Only temporary, omit from archive
# Create the archive
# Remove the temporary directory