Skip to content

Commit

Permalink
submodules use lib/PDL/LinearAlgebra.pm for VERSION - PAUSE descendin…
Browse files Browse the repository at this point in the history
…g version
  • Loading branch information
mohawk2 committed Jan 4, 2025
1 parent 80c9dbc commit 333c89c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Complex/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
WriteMakefile(
%hash,
%ldloadlibs,
VERSION_FROM => $file,
VERSION_FROM => '../lib/PDL/LinearAlgebra.pm',
NO_MYMETA => 1,
);

Expand Down
10 changes: 6 additions & 4 deletions Complex/complex.pd
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
do('../Config');
our $VERSION = '0.14';
pp_setversion($VERSION);
$VERSION = eval $VERSION;

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

if ($config{CBLAS}){
pp_addhdr('#include <cblas.h>');
Expand Down
2 changes: 1 addition & 1 deletion Real/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
WriteMakefile(
%hash,
%ldloadlibs,
VERSION_FROM => $file,
VERSION_FROM => '../lib/PDL/LinearAlgebra.pm',
NO_MYMETA => 1,
);

Expand Down
12 changes: 6 additions & 6 deletions Real/real.pd
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
do('../Config');

our $VERSION = '0.14';
pp_setversion($VERSION);
$VERSION = eval $VERSION;

use PDL::Exporter;
use PDL::Types qw(ppdefs_all);
{ # required because PAUSE will reject undefined $VERSION
require ExtUtils::MM;
my $MM = bless { NAME => 'Fake' }, 'MM';
my $global_version = $MM->parse_version('../lib/PDL/LinearAlgebra.pm');
pp_setversion($global_version);
}

sub generate_code($){
if ($config{WITHOUT_THREAD}){
Expand Down
2 changes: 1 addition & 1 deletion Trans/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
WriteMakefile(
%hash,
%ldloadlibs,
VERSION_FROM => $file,
VERSION_FROM => '../lib/PDL/LinearAlgebra.pm',
NO_MYMETA => 1,
);

Expand Down
9 changes: 6 additions & 3 deletions Trans/trans.pd
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
our $VERSION = '0.14';
pp_setversion($VERSION);
$VERSION = eval $VERSION;
{ # required because PAUSE will reject undefined $VERSION
require ExtUtils::MM;
my $MM = bless { NAME => 'Fake' }, 'MM';
my $global_version = $MM->parse_version('../lib/PDL/LinearAlgebra.pm');
pp_setversion($global_version);
}

if ($^O =~ /MSWin/) {
pp_addhdr('
Expand Down

0 comments on commit 333c89c

Please sign in to comment.