Ignore:
Timestamp:
03/04/2009 01:17:35 (3 years ago)
Author:
chris
Message:

Use update copy to speed up rebuilds on windows/cygwin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/makeparcels.pl.in

    r2475 r2492  
    2424        } 
    2525        return 0; 
     26} 
     27 
     28my $copy_command = "cp -p"; 
     29 
     30if ($build_os eq 'CYGWIN') 
     31{ 
     32        $copy_command = "cp -pu"; # faster 
    2633} 
    2734 
     
    169176$dir/$name$exeext: release/bin/$name/$name$exeext 
    170177        mkdir -p $dir 
    171         cp -p release/bin/$name/$name$exeext $dir 
     178        $copy_command release/bin/$name/$name$exeext $dir 
    172179 
    173180.PHONY: release/bin/$name/$name$exeext 
     
    193200                        { 
    194201                                print MAKE "\ttest -r $fullpath " . 
    195                                         "&& cp -p $fullpath $dir || true\n"; 
     202                                        "&& $copy_command $fullpath $dir || true\n"; 
    196203                        } 
    197204                        else 
    198205                        { 
    199                                 print MAKE "\tcp -p $fullpath $dir\n"; 
     206                                print MAKE "\t$copy_command $fullpath $dir\n"; 
    200207                        } 
    201208 
     
    209216$dir/${name}.gz: docs/man/${name}.gz 
    210217        mkdir -p $dir 
    211         cp -p docs/man/${name}.gz $dir 
     218        $copy_command docs/man/${name}.gz $dir 
    212219 
    213220EOF 
Note: See TracChangeset for help on using the changeset viewer.