Changeset 6249 in vbox
- Timestamp:
- Jan 4, 2008 8:42:59 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27088
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r6242 r6249 2760 2760 ifndef VBOX_OSE 2761 2761 if1of ($(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 2763 VBOX_LICENSE_SRC := $(PATH_ROOT)/doc/License.html 2764 VBOX_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) 2770 VBOX_LICENSE_BIN = $(PATH_BIN)/License-$(VBOX_LICENSE_VER).html 2772 2771 endif 2773 2772 endif
Note:
See TracChangeset
for help on using the changeset viewer.