Ticket #2068: common.jam.patch

File common.jam.patch, 1.2 KB (added by Jurko Gospodnetic, 14 years ago)

Suggested patch for working around problems detected with the Boost Accumulators library documentation build.

  • tools/build/v2/tools/common.jam

     
    576576        $(<)-mkdir = true ;
    577577
    578578        # Schedule the mkdir build action.
    579         MkDir1 $(<) ;
     579        if [ os.name ] = NT
     580        {
     581            MkDir1-quick-fix-for-windows $(<) ;
     582        }
     583        else
     584        {
     585            MkDir1-quick-fix-for-unix $(<) ;
     586        }
    580587
    581588        # Prepare a Jam 'dirs' target that can be used to make the build only
    582589        # construct all the target directories.
     
    617624}
    618625
    619626
     627# (todo)
     628#   The following quick-fix actions should be replaced using the original MkDir1
     629# action once Boost Jam gets updated to correctly detect different paths leading
     630# up to the same filesystem target and triggers their build action only once.
     631#                                             (todo) (04.07.2008.) (Jurko)
     632actions MkDir1-quick-fix-for-unix
     633{
     634    mkdir -p "$(<)"
     635}
     636actions MkDir1-quick-fix-for-windows
     637{
     638    if not exist "$(<)\\" mkdir "$(<)"
     639}
     640
     641
    620642actions piecemeal together existing Clean
    621643{
    622644    $(RM) "$(>)"