Changeset 22414


Ignore:
Timestamp:
2010-07-16T15:20:59+12:00 (12 years ago)
Author:
davidb
Message:

Test for version of perl changed to produce correct 'perl-x.xx' directory name for greenstoe/cpan/ location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/build-src/packages/configure

    r22378 r22414  
    176176echo ""
    177177cd "$PACKAGES/cpan"
    178 perl_dir=`echo 'my $vn = $]; $vn =~ s/5\.00(\d).*$/perl-5.$1/; print "$vn" ' | perl`
     178
     179perl_dir=`echo 'my $vn = sprintf("%vd", $^V); $vn =~ s/\.\d+?$//; print "perl-$vn";' | perl`
     180
    179181gzip -dc XML-Parser-2.34.tar.gz | tar -xf -
    180182cd "$PACKAGES/cpan/XML-Parser-2.34" && \
Note: See TracChangeset for help on using the changeset viewer.