Magellan Linux

Diff of /smage/branches/alx07x-unstable/include/cpan.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

smage/trunk/include/cpan.sminc revision 5710 by niro, Thu Jul 3 13:53:58 2014 UTC smage/branches/alx07x-unstable/include/cpan.sminc revision 7873 by niro, Wed Nov 18 09:48:24 2015 UTC
# Line 8  sminclude perl Line 8  sminclude perl
8  #   ${CPAN_AUTHOR}:   needed, author of the CPAN-module  #   ${CPAN_AUTHOR}:   needed, author of the CPAN-module
9  [[ -z ${CPAN_AUTHOR} ]] && die "cpan.sminc: \$CPAN_AUTHOR not given!"  [[ -z ${CPAN_AUTHOR} ]] && die "cpan.sminc: \$CPAN_AUTHOR not given!"
10    
11  CPAN_AUTHOR_UPPER="${CPAN_AUTHOR^^}"  if [[ ${BASH_VERSINFO[0]} -le 3 ]]
12  CPAN_AUTHOR_LOWER="${CPAN_AUTHOR,,}"  then
13     CPAN_AUTHOR_UPPER=$(echo ${CPAN_AUTHOR} | tr '[a-z]' '[A-Z]')
14     CPAN_AUTHOR_LOWER=$(echo ${CPAN_AUTHOR} | tr '[A-Z]' '[a-z]')
15    else
16     CPAN_AUTHOR_UPPER="${CPAN_AUTHOR^^}"
17     CPAN_AUTHOR_LOWER="${CPAN_AUTHOR,,}"
18    fi
19    
20  : ${CPAN_MODULE="${PNAME}"}  : ${CPAN_MODULE="${PNAME}"}
21    : ${CPAN_TARBALL_SUFFIX="gz"}
22    
23  # some sane defaults  # some sane defaults
24  : ${PCAT="dev-perl"}  : ${PCAT="dev-perl"}
# Line 29  SRC_URI=( Line 36  SRC_URI=(
36   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
37  )  )
38    
39  UP2DATE="updatecmd_perl ${CPAN_MODULE} gz"  UP2DATE="updatecmd_perl ${CPAN_MODULE} ${CPAN_TARBALL_SUFFIX}"
40    
41  cpan_src_prepare()  cpan_src_prepare()
42  {  {

Legend:
Removed from v.5710  
changed lines
  Added in v.7873