export_modules revision 8d974ced0dc3540dd1b3ec85f8663388e246461a
#
# Create a tar archive containing the sources of the Linux guest kernel
# modules
#
# Copyright (C) 2006-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>"
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`
VBOX_SVN_REV=`sed -e 's/^ *VBOX_SVN_REV_FALLBACK *:= \+\$(patsubst *%:,, *\$Rev: *\([0-9]\+\) *\$ *) */\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
echo "#define VBOX_VERSION_STRING \"$VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD\"" >> $PATH_TMP/version-generated.h
# Create auto-generated revision file, needed by all modules
# Create auto-generated product file, needed by all modules
# vboxguest (VirtualBox guest kernel module)
for f in $FILES_VBOXGUEST_NOBIN; do
done
for f in $FILES_VBOXGUEST_BIN; do
done
# vboxsf (VirtualBox guest kernel module for shared folders)
for f in $FILES_VBOXSF_NOBIN; do
done
for f in $FILES_VBOXSF_BIN; do
done
# convenience Makefile
# Only temporary, omit from archive
# Create the archive
# Remove the temporary directory