Show
Ignore:
Timestamp:
26.06.2012 10:49:36 (8 years ago)
Author:
jmt12
Message:

Adding conditional blocks so that packages are only rebuilt if they missing from the install directory

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/packages/CASCADE-MAKE/PROCDAEMON.sh

    r24690 r25812  
    1313opt_run_perl_configure $force_config $auto_config $package $version $prefix 
    1414 
    15 opt_run_make $compile   $package $version 
    16 opt_run_make $install   $package $version "install" 
     15# We only compile if necessary, as compilation is quite slow and we don't 
     16# edit these source files 
     17if [[ ! -e "$GEXTPARALLELBUILDING_INSTALLED/share/perl/5.12.4/Proc/Daemon.pm" ]] 
     18then 
     19  opt_run_make $compile   $package $version 
     20  opt_run_make $install   $package $version "install" 
     21else 
     22  echo "Proc::Daemon Perl module already compiled => no need to recompile" 
     23fi 
     24 
    1725opt_run_make $clean     $package $version "clean" 
    1826opt_run_make $distclean $package $version "distclean"