Skip to content

Commit

Permalink
config.gc: calculate my_uname dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnlaffan committed Mar 11, 2023
1 parent d8f0dc6 commit 0062273
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/Perl/Dist/Strawberry/Step.pm
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,12 @@ sub _get_default_config_hash {
vendorscriptexp => '~INST_TOP~\bin',
};

use POSIX qw(strftime);
my $time = strftime "%a %b %e %H:%M:%S %Y", gmtime();
my $bits = $self->global->{bits};
my $app_version = $self->global->{app_version};
$h->{my_uname} = "Win32 strawberry-perl $app_version # $now_string x${bits}";

# fix up quoting of values - saves a heap of editing
foreach my $val (values %$h) {
next if $val =~ /^'/; # assumes symmetry, i.e. opening and closing
Expand Down
2 changes: 1 addition & 1 deletion share/64bit-5.36.0.1.pp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
i_dbm => 'define',
i_gdbm => 'define',
i_ndbm => 'define',
myuname => 'Win32 strawberry-perl 5.36.0.1 #1 Sat 04 Mar 2023 x64 tempvaluesonly',
#myuname => 'Win32 strawberry-perl 5.36.0.1 #1 Sat 04 Mar 2023 x64 tempvaluesonly',
osvers => '10',
},
},
Expand Down

0 comments on commit 0062273

Please sign in to comment.