Ticket #1902: build_symbolic_links.patch

File build_symbolic_links.patch, 1.3 KB (added by Frank Mori Hess, 14 years ago)
  • Jamroot

     
    414414            }
    415415        }
    416416       
    417         # Create hardlinks without version.
     417        # Create links without version.
    418418        for local s in $(filtered)
    419419        {
    420420            local name = [ $(s).name ] ;
    421421            local ea = [ $(s).action ] ;
    422422            local ep = [ $(ea).properties ] ;
    423423            local a  = [
    424               new non-scanning-action $(s) : common.hard-link : $(ep) ] ;
     424              new non-scanning-action $(s) : symlink.ln : $(ep) ] ;
    425425           
    426426            local noversion-file ;
    427427            if $(nt)
  • tools/build/v2/tools/symlink.jam

     
    129129    ln -f -s '$(>:D=:R=$(PATH_TO_SOURCE))' '$(<)'
    130130}
    131131
    132 # there is a way to do this; it's a dummy rule for now
     132# there is a way to do this; we fall back to a copy for now
    133133actions ln-NT
    134134{
    135     echo "NT symlinks not supported yet"
     135    echo "NT symlinks not supported yet, making copy"
     136    del /f /q "$(<)" 2$(NULL_OUT) $(NULL_OUT)
     137    copy "$(>)" "$(<)" $(NULL_OUT)
    136138}
    137139
    138140IMPORT $(__name__) : symlink : : symlink ;