Skip to content

Commit 333c89c

Browse files
committed
submodules use lib/PDL/LinearAlgebra.pm for VERSION - PAUSE descending version
1 parent 80c9dbc commit 333c89c

File tree

6 files changed

+21
-16
lines changed

6 files changed

+21
-16
lines changed

Complex/Makefile.PL

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
1313
WriteMakefile(
1414
%hash,
1515
%ldloadlibs,
16-
VERSION_FROM => $file,
16+
VERSION_FROM => '../lib/PDL/LinearAlgebra.pm',
1717
NO_MYMETA => 1,
1818
);
1919

Complex/complex.pd

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
do('../Config');
2-
our $VERSION = '0.14';
3-
pp_setversion($VERSION);
4-
$VERSION = eval $VERSION;
52

6-
use PDL::Exporter;
3+
{ # required because PAUSE will reject undefined $VERSION
4+
require ExtUtils::MM;
5+
my $MM = bless { NAME => 'Fake' }, 'MM';
6+
my $global_version = $MM->parse_version('../lib/PDL/LinearAlgebra.pm');
7+
pp_setversion($global_version);
8+
}
79

810
if ($config{CBLAS}){
911
pp_addhdr('#include <cblas.h>');

Real/Makefile.PL

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
1313
WriteMakefile(
1414
%hash,
1515
%ldloadlibs,
16-
VERSION_FROM => $file,
16+
VERSION_FROM => '../lib/PDL/LinearAlgebra.pm',
1717
NO_MYMETA => 1,
1818
);
1919

Real/real.pd

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
do('../Config');
22

3-
our $VERSION = '0.14';
4-
pp_setversion($VERSION);
5-
$VERSION = eval $VERSION;
6-
7-
use PDL::Exporter;
8-
use PDL::Types qw(ppdefs_all);
3+
{ # required because PAUSE will reject undefined $VERSION
4+
require ExtUtils::MM;
5+
my $MM = bless { NAME => 'Fake' }, 'MM';
6+
my $global_version = $MM->parse_version('../lib/PDL/LinearAlgebra.pm');
7+
pp_setversion($global_version);
8+
}
99

1010
sub generate_code($){
1111
if ($config{WITHOUT_THREAD}){

Trans/Makefile.PL

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
1313
WriteMakefile(
1414
%hash,
1515
%ldloadlibs,
16-
VERSION_FROM => $file,
16+
VERSION_FROM => '../lib/PDL/LinearAlgebra.pm',
1717
NO_MYMETA => 1,
1818
);
1919

Trans/trans.pd

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
our $VERSION = '0.14';
2-
pp_setversion($VERSION);
3-
$VERSION = eval $VERSION;
1+
{ # required because PAUSE will reject undefined $VERSION
2+
require ExtUtils::MM;
3+
my $MM = bless { NAME => 'Fake' }, 'MM';
4+
my $global_version = $MM->parse_version('../lib/PDL/LinearAlgebra.pm');
5+
pp_setversion($global_version);
6+
}
47

58
if ($^O =~ /MSWin/) {
69
pp_addhdr('

0 commit comments

Comments
 (0)