root/gs2-extensions/parallel-building/trunk/src/packages/CASCADE-MAKE/IPCRUN.sh @ 25812

Revision 25812, 0.8 KB (checked in by jmt12, 8 years ago)

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

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=IPC-Run
4version=-0.90
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXTPARALLELBUILDING ../.. $*
9
10prefix=$GEXTPARALLELBUILDING_INSTALLED
11
12opt_run_untar $force_untar $auto_untar $package $version
13opt_run_perl_configure $force_config $auto_config $package $version $prefix
14
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/IPC/Run.pm" ]]
18then
19  opt_run_make $compile   $package $version
20  opt_run_make $install   $package $version "install"
21else
22  echo "IPC::Run Perl module already compiled => no need to recompile"
23fi
24
25opt_run_make $clean     $package $version "clean"
26opt_run_make $distclean $package $version "distclean"
27
28opt_run_tarclean $tarclean $package $version
29
30
31
32
33
34
35
Note: See TracBrowser for help on using the browser.