Changeset 825 for trunk/kBuild


Ignore:
Timestamp:
Feb 1, 2007, 7:37:56 AM (18 years ago)
Author:
bird
Message:

Added fake xargs implementation. Retired abspathex to gnumake-header.kmk.

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/gnumake-header.kmk

    r819 r825  
    5656# @param    $1   The stack variable name
    5757stack-top  = $(lastword $($1))
     58
     59## Converts an relative path to an absolute path using the given CWD.
     60# @returns absolute path.
     61# @param    $1      The path to fixup.
     62# @param    $2      The CWD to use.
     63abspathex = $(foreach _fix_path,$1\
     64,$(if $(subst :$(call no-root-slash,$(call no-drive,$(_fix_path))):,,:$(_fix_path):),$(_fix_path),$(abspath $2/$(_fix_path))))
     65
    5866
    5967##
  • trunk/kBuild/header.kmk

    r823 r825  
    484484endif
    485485
    486 ifneq ($(filter abspathex,$(KMK_FEATURES)),abspathex) ## @todo Retire this to gnumake-header.kmk when it has been implemented.
    487 ## Converts an relative path to an absolute path using the given CWD.
    488 # @returns absolute path.
    489 # @param    $1      The path to fixup.
    490 # @param    $2      The CWD to use.
    491 abspathex = $(foreach _fix_path,$1\
    492 ,$(if $(subst :$(call no-root-slash,$(call no-drive,$(_fix_path))):,,:$(_fix_path):),$(_fix_path),$(abspath $2/$(_fix_path))))
     486ifneq ($(filter xargs,$(KMK_FEATURES)),xargs) ## @todo Retire this to gnumake-header.kmk when it has been implemented.
     487##
     488# Fake xargs without doing any commandline splitting.
     489# @param    $1      The initial command.
     490# @param    $2      The command for the subseqent command lines. optional
     491# @param    $3          The command for the final command lines. optional
     492# @param    $($#)   The arguments.
     493xargs = $(1) $(if $(4),$(4),$(if $(3),$(3),$(2)))
    493494endif
    494495
Note: See TracChangeset for help on using the changeset viewer.