Changeset 24689


Ignore:
Timestamp:
2011-09-29T14:26:00+13:00 (13 years ago)
Author:
jmt12
Message:

Add new function for Perl CPAN module configuration (which calls 'perl Makefile.PL PREFIX=' rather than configure)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/cascade-make/trunk/lib/cascade-lib.bash

    r23111 r24689  
    173173
    174174
     175opt_run_perl_configure()
     176{
     177  local force_config=$1; shift
     178  local auto_config=$1; shift
     179  local package=$1; shift
     180  local version=$1; shift
     181  local prefix=$1; shift
     182
     183  if [ $force_config = "1" ] ; then
     184    echo "[pushd $package$version]"
     185    ( cd $package$version ; \
     186      echo perl Makefile.PL PREFIX="$prefix" $CROSSCOMPILE $@ ;
     187      perl Makefile.PL PREFIX="$prefix" $CROSSCOMPILE $@)
     188    if [ $? != 0 ] ; then
     189        echo "      Error encountered running *configure* stage of $progname"
     190        exit 1
     191    fi
     192    echo "[popd]"
     193  else
     194    if [ $auto_config = "1" ] ; then
     195      echo "Found top-level for ${progname%.*} => no need to run perl configure"
     196    fi
     197  fi
     198}
     199
     200
    175201opt_run_make()
    176202{
Note: See TracChangeset for help on using the changeset viewer.