VirtualBox

Changeset 81610 in vbox for trunk


Ignore:
Timestamp:
Oct 31, 2019 4:50:28 PM (5 years ago)
Author:
vboxsync
Message:

Config.kmk, Version.kmk: Improve fallback revision guessing. Splitting off Version.kmk made it a lot less precise, which is fixed now.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r81422 r81610  
    76987698# tree to determine this it if .svn/wc.db or .svn/entries is found (the former
    76997699# also up to two directory levels higher to allow for checkouts of the entire
    7700 # repository), otherwise fall back on the Config.kmk revision.
     7700# repository), otherwise fall back on maximum value of Config.kmk and
     7701# Version.kmk revision.
    77017702#
    77027703# Makefile rules using this information shall list $(VBOX_SVN_REV_KMK) as a
     
    77067707VBOX_SVN_REV_KMK        = $(PATH_OUT)/revision.kmk
    77077708ifndef VBOX_SVN_REV
    7708  VBOX_SVN_REV_FALLBACK := $(patsubst %:,,  $Rev$  )
     7709 VBOX_SVN_REV_CONFIG_FALLBACK := $(patsubst %:,,  $Rev$  )
     7710 VBOX_SVN_REV_FALLBACK := $(if-expr $(VBOX_SVN_REV_CONFIG_FALLBACK) > $(VBOX_SVN_REV_VERSION_FALLBACK),$(VBOX_SVN_REV_CONFIG_FALLBACK),$(VBOX_SVN_REV_VERSION_FALLBACK))
    77097711 VBOX_SVN_DEP          := $(firstword $(wildcard $(PATH_ROOT)/.svn/wc.db $(abspath $(PATH_ROOT)/../.svn/wc.db) $(abspath $(PATH_ROOT)/../../.svn/wc.db) $(PATH_ROOT)/.svn/entries))
    77107712 ifeq ($(which $(SVN)),)
  • trunk/Version.kmk

    r81496 r81610  
    3434# our numbering does not say this is a release build, by setting this non-empty.
    3535VBOX_RELEASE_EXACT_MATCH =
     36
     37# Fallback revision when there is no other source. See Config.kmk.
     38VBOX_SVN_REV_VERSION_FALLBACK := $(patsubst %:,,  $Rev$  )
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