- Timestamp:
- Dec 4, 2007 11:17:35 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 26505
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r5949 r5950 1096 1096 # @param 1 The inf file to edit. 1097 1097 # @param 2 The output file. 1098 ifdef KMK_NEW_SED1099 1098 VBOX_EDIT_INF32_FN = $(SED) $(if $(VBOX_SIGNING_MODE),-e 's/^;cat *//', -e '/^;cat /d') -e 's/^;x86 *//' -e '/^;amd64 /d' --output $(2) $(1) 1100 else1101 VBOX_EDIT_INF32_FN = $(SED) $(if $(VBOX_SIGNING_MODE),-e 's/^;cat *//', -e '/^;cat /d') -e 's/^;x86 *//' -e '/^;amd64 /d' $(1) > $(2)1102 endif1103 1099 ## Edit an inf file an x86 target. 1104 1100 # @param 1 The inf file to edit. 1105 1101 # @param 2 The output file. 1106 ifdef KMK_NEW_SED1107 1102 VBOX_EDIT_INF64_FN = $(SED) $(if $(VBOX_SIGNING_MODE),-e 's/^;cat *//', -e '/^;cat /d') -e 's/^;amd64 *//' -e '/^;x86 /d' --output $(2) $(1) 1108 else1109 VBOX_EDIT_INF64_FN = $(SED) $(if $(VBOX_SIGNING_MODE),-e 's/^;cat *//', -e '/^;cat /d') -e 's/^;amd64 *//' -e '/^;x86 /d' $(1) > $(2)1110 endif1111 1103 1112 1104 # … … 2684 2676 VBOX_SVN_REV_FALLBACK := $(patsubst %:,, $Rev$ ) 2685 2677 VBOX_SVN_DEP := $(wildcard $(PATH_ROOT)/.svn/entries) 2686 ifeq ($(KBUILD_VERSION_PATCH),2) ## tmp, remove later. 2687 ifeq ($(which (SVN)),) 2678 ifeq ($(which $(SVN)),) 2688 2679 VBOX_SVN_DEP := 2689 2680 endif … … 2703 2694 $(QUIET)$(CP) --changed -fv $@ $(VBOX_SVN_REV_KMK) 2704 2695 2705 else ## tmp, remove later.2706 ifneq ($(USERNAME),bird) # Wastes nearly half a second on windows, very annoying. TODO: $(which ).2707 ifneq ($(shell $(SVN) --version > /dev/null 2>&1 || echo 'svn not installed'),)2708 VBOX_SVN_DEP :=2709 endif2710 endif2711 2712 # Rule for generating a timestamp and updating the real thing on change.2713 ifneq ($(VBOX_SVN_DEP),)2714 $(VBOX_SVN_REV_KMK).ts: $(VBOX_SVN_DEP)2715 else2716 $(VBOX_SVN_REV_KMK).ts: $(PATH_ROOT)/Config.kmk2717 endif2718 $(call MSG_GENERATE,,$(VBOX_SVN_REV_KMK))2719 $(QUIET)$(RM) -f $@2720 $(QUIET)$(MKDIR) -p $(@D)2721 ifneq ($(VBOX_SVN_DEP),)2722 # $(QUIET)$(APPEND) $@ 'export VBOX_SVN_REV=$(shell LC_ALL=C $(SVN) info $(PATH_ROOT) | $(SED) -e '/^Last Changed Rev/!d' -e "s/Last Changed Rev\: *//")'2723 $(QUIET)$(APPEND) $@ 'export VBOX_SVN_REV=$(shell LC_ALL=C $(SVN) info $(PATH_ROOT) | $(SED) -e '/^Revision/!d' -e "s/Revision\: *//")'2724 else2725 $(QUIET)$(APPEND) $@ 'export VBOX_SVN_REV=$(VBOX_SVN_REV_FALLBACK)'2726 endif2727 $(QUIET)if test ! -f $(VBOX_SVN_REV_KMK) \2728 || test ! "`$(CAT_EXT) $@`" = "`$(CAT_EXT) $(VBOX_SVN_REV_KMK)`"; \2729 then \2730 $(RM_EXT) -f $(VBOX_SVN_REV_KMK); \2731 $(CP_EXT) -f $@ $(VBOX_SVN_REV_KMK) || exit 1; \2732 echo '* $(VBOX_SVN_REV_KMK) was updated:'; \2733 else \2734 echo '* $(VBOX_SVN_REV_KMK) was not changed:'; \2735 fi2736 $(QUIET)$(CAT) $(VBOX_SVN_REV_KMK)2737 2738 $(VBOX_SVN_REV_KMK): $(VBOX_SVN_REV_KMK).ts # remove when kBuild is updated.2739 endif ## tmp, remove later2740 2741 2696 include $(VBOX_SVN_REV_KMK) 2742 2697 else
Note:
See TracChangeset
for help on using the changeset viewer.