VirtualBox

Ignore:
Timestamp:
Apr 27, 2018 12:07:20 AM (7 years ago)
Author:
vboxsync
Message:

Installer/win,Config.kmk: First draft of toplevel scripts for combined builds. Added revision as comment on inf-files. Added VBOX_EDIT_VERSION_AND_BUILD_RULE_FN macro. bugref:8691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/Scripts/PackDriversForSubmission.cmd

    r71991 r72047  
    3131set _MY_OPT_OUTPUT=
    3232set _MY_OPT_DDF_FILE=
    33 set _MY_OPT_ARCH=
     33set _MY_OPT_ARCH=@KBUILD_TARGET_ARCH@
    3434
    3535:argument_loop
     
    7070
    7171:opt_a
    72 if ".%2" == "."             goto syntax_error_missing_value
     72if ".%~2" == "."            goto syntax_error_missing_value
    7373if not "%2" == "x86" if not "%2" == "amd64" goto syntax_error_unknown_arch
    74 set _MY_OPT_ARCH=%2
     74set _MY_OPT_ARCH=%~2
    7575goto argument_loop_next_with_value
    7676
    7777:opt_b
    78 if ".%2" == "."             goto syntax_error_missing_value
    79 set _MY_OPT_BINDIR=%2
     78if ".%~2" == "."            goto syntax_error_missing_value
     79set _MY_OPT_BINDIR=%~2
    8080goto argument_loop_next_with_value
    8181
    8282:opt_d
    83 if ".%2" == "."             goto syntax_error_missing_value
    84 set _MY_OPT_DDF_FILE=%2
     83if ".%~2" == "."            goto syntax_error_missing_value
     84set _MY_OPT_DDF_FILE=%~2
    8585goto argument_loop_next_with_value
    8686
    8787:opt_e
    88 if ".%2" == "."             goto syntax_error_missing_value
    89 set _MY_OPT_EXTPACK=%2
     88if ".%~2" == "."            goto syntax_error_missing_value
     89set _MY_OPT_EXTPACK=%~2
    9090goto argument_loop_next_with_value
    9191
     
    106106
    107107:opt_p
    108 if ".%2" == "."             goto syntax_error_missing_value
    109 set _MY_OPT_PDBDIR=%2
     108if ".%~2" == "."            goto syntax_error_missing_value
     109set _MY_OPT_PDBDIR=%~2
    110110goto argument_loop_next_with_value
    111111
    112112:opt_o
    113 if ".%2" == "."             goto syntax_error_missing_value
    114 set _MY_OPT_OUTPUT=%2
     113if ".%~2" == "."            goto syntax_error_missing_value
     114set _MY_OPT_OUTPUT=%~2
    115115goto argument_loop_next_with_value
    116116
     
    162162:no_extack_validation
    163163
    164 if ".%_MY_OPT_ARCH%" == "."         if exist "%_MY_OPT_BINDIR%\x86" set _MY_OPT_ARCH=amd64
    165 if ".%_MY_OPT_ARCH%" == "."         set _MY_OPT_ARCH=x86
    166 
    167 if ".%_MY_OPT_OUTPUT%" == "."       set _MY_OPT_OUTPUT=VBoxDrivers-%_MY_OPT_ARCH%.cab
     164if ".%_MY_OPT_OUTPUT%" == "."       set _MY_OPT_OUTPUT=VBoxDrivers-@VBOX_VERSION_STRING@r@VBOX_SVN_REV@-%_MY_OPT_ARCH%.cab
    168165if exist "%_MY_OPT_OUTPUT%"         goto error_output_exists
    169166
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette