VirtualBox

Changeset 6249 in vbox


Ignore:
Timestamp:
Jan 4, 2008 8:42:59 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27088
Message:

fixed VBOX_LICENSE_VER stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r6242 r6249  
    27602760ifndef VBOX_OSE
    27612761if1of ($(BUILD_TARGET),freebsd linux netbsd openbsd solaris)
    2762 VBOX_LICENSE_SRC := $(PATH_ROOT)/doc/License.html
    2763 ## @todo this can be done by sed alone. Why do we have to do this $(shell ) stuff in *all* make
    2764 # files btw? If this is really necessary, then just do it once for <insert deity of choice>'s sake.
    2765 # Who-ever added this, please fix!
    2766 VBOX_LICENSE_VER := $(shell grep Version $(VBOX_LICENSE_SRC)|sed -e 's/.*Version \([0-9.]*\),.*/\1/g')
    2767 VBOX_LICENSE_BIN := $(PATH_BIN)/License-$(VBOX_LICENSE_VER).html
    2768 
    2769 $(VBOX_LICENSE_BIN): $(VBOX_LICENSE_SRC)
    2770         $(call MSG_GENERATE,,$@)
    2771         $(QUIET)$(CP) $< $@
     2762# VBOX_LICENSE_VER is used in several Makefiles
     2763VBOX_LICENSE_SRC    := $(PATH_ROOT)/doc/License.html
     2764VBOX_LICENSE_VER_KMK = $(PATH_OUT)/license-version.kmk
     2765$(VBOX_LICENSE_VER_KMK): $(VBOX_LICENSE_SRC)
     2766        $(call MSG_GENERATE,,$(VBOX_LICENSE_VER_KMK))
     2767        $(QUIET)$(MKDIR) -p $(@D)
     2768        $(QUIET)$(SED) -e "s/.*Version \([0-9.]*\),.*/VBOX_LICENSE_VER=\1/;t;d" --output $@ $(VBOX_LICENSE_SRC)
     2769-include $(VBOX_LICENSE_VER_KMK)
     2770VBOX_LICENSE_BIN = $(PATH_BIN)/License-$(VBOX_LICENSE_VER).html
    27722771endif
    27732772endif
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