VirtualBox

Changeset 3730 in vbox


Ignore:
Timestamp:
Jul 20, 2007 12:12:22 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23036
Message:

Fix field used to determine svn revision. Implement VirtualBox -v,
printing just the version number.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r3690 r3730  
    25182518        $(QUIET)$(MKDIR) -p $(@D)
    25192519 ifneq ($(VBOX_SVN_DEP),)
    2520         $(QUIET)$(APPEND) $@ "export VBOX_SVN_REV=$(shell $(SVN) info $(PATH_ROOT) | $(SED) -e '/^Revision/!d'  -e "s/Revision\: *//")"
     2520        $(QUIET)$(APPEND) $@ "export VBOX_SVN_REV=$(shell $(SVN) info $(PATH_ROOT) | $(SED) -e '/^Last Changed Rev/!d'  -e "s/Last Changed Rev\: *//")"
    25212521 else
    25222522        $(QUIET)$(APPEND) $@ "export VBOX_SVN_REV=$(VBOX_SVN_REV_FALLBACK)"
  • trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk

    r3186 r3730  
    4949        $(PATH_BIN)/VBoxXML$(VBOX_SUFF_DLL)
    5050endif
     51# VBoxManage.cpp uses VBOX_SVN_REV.
     52VBoxManage.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
     53VBoxManage.cpp_DEPS = $(VBOX_SVN_REV_KMK)
    5154
    5255
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r3701 r3730  
    262262    if (u64Cmd == USAGE_ALL)
    263263    {
     264        RTPrintf("VBoxManage [-v|-version]    print version number and exit\n");
    264265        RTPrintf("VBoxManage -nologo ...      suppress the logo\n"
    265266                 "\n");
     
    316317                 "                            [-ioapic on|off]\n"
    317318                 "                            [-hwvirtex on|off|default]\n"
    318                  "                            [-monitorcount <number>\n"
     319                 "                            [-monitorcount <number>]\n"
    319320                 "                            [-bioslogofadein on|off]\n"
    320321                 "                            [-bioslogofadeout on|off]\n"
     
    63106311            return 0;
    63116312        }
     6313        else if (   strcmp(argv[i], "-v") == 0
     6314                 || strcmp(argv[i], "-version") == 0
     6315                 || strcmp(argv[i], "-Version") == 0
     6316                 || strcmp(argv[i], "--version") == 0)
     6317        {
     6318            /* Print version number, and do nothing else. */
     6319            RTPrintf("%sr%d\n", VBOX_VERSION_STRING, VBOX_SVN_REV);
     6320            exit(0);
     6321        }
    63126322        else if (strcmp(argv[i], "-nologo") == 0)
    63136323        {
Note: See TracChangeset for help on using the changeset viewer.

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