Changeset 89370 in vbox for trunk/src/VBox/HostDrivers/linux/export_modules.sh
- Timestamp:
- May 28, 2021 7:24:37 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/linux/export_modules.sh
r85386 r89370 32 32 # What this script does: 33 33 usage_msg="\ 34 Usage: `basename ${0}` --file <path>|--folder <path> [--without-hardening] 34 Usage: `basename ${0}` --file <path>|--folder <path> \ 35 [--override-svn-rev <rev>] [--extra-version-string <string>] [--without-hardening] 35 36 36 37 Exports the VirtualBox host kernel modules to the tar.gz archive or folder in \ … … 68 69 FOLDER="${2}" 69 70 shift 2 ;; 71 --override-svn-rev) 72 OVERRIDE_SVN_REV="${2}" 73 shift 2 ;; 74 --extra-version-string) 75 EXTRA_VERSION_STRING="${2}" 76 shift 2 ;; 70 77 --without-hardening) 71 78 unset VBOX_WITH_HARDENING … … 104 111 VBOX_SVN_CONFIG_REV=`sed -e 's/^ *VBOX_SVN_REV_CONFIG_FALLBACK *:= \+\$(patsubst *%:,, *\$Rev: *\([0-9]\+\) *\$ *) */\1/;t;d' $PATH_ROOT/Config.kmk` 105 112 VBOX_SVN_VERSION_REV=`sed -e 's/^ *VBOX_SVN_REV_VERSION_FALLBACK *:= \+\$(patsubst *%:,, *\$Rev: *\([0-9]\+\) *\$ *) */\1/;t;d' $PATH_ROOT/Version.kmk` 106 if [ "$VBOX_SVN_CONFIG_REV" -gt "$VBOX_SVN_VERSION_REV" ]; then 113 114 if [ -n "$OVERRIDE_SVN_REV" ]; then 115 VBOX_SVN_REV=$OVERRIDE_SVN_REV 116 elif [ "$VBOX_SVN_CONFIG_REV" -gt "$VBOX_SVN_VERSION_REV" ]; then 107 117 VBOX_SVN_REV=$VBOX_SVN_CONFIG_REV 108 118 else … … 136 146 echo "#define VBOX_VERSION_STRING \"$VBOX_VERSION_STRING\"" >> $PATH_TMP/version-generated.h 137 147 echo "#define VBOX_API_VERSION_STRING \"${VBOX_VERSION_MAJOR}_${VBOX_VERSION_MINOR}\"" >> $PATH_TMP/version-generated.h 148 [ -n "$EXTRA_VERSION_STRING" ] && echo "#define VBOX_EXTRA_VERSION_STRING \" ${EXTRA_VERSION_STRING}\"" >> $PATH_TMP/version-generated.h 138 149 echo "#define VBOX_PRIVATE_BUILD_DESC \"Private build with export_modules\"" >> $PATH_TMP/version-generated.h 139 150 echo "" >> $PATH_TMP/version-generated.h
Note:
See TracChangeset
for help on using the changeset viewer.