Skip to content

Commit 0062273

Browse files
committed
config.gc: calculate my_uname dynamically
1 parent d8f0dc6 commit 0062273

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/Perl/Dist/Strawberry/Step.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,12 @@ sub _get_default_config_hash {
682682
vendorscriptexp => '~INST_TOP~\bin',
683683
};
684684

685+
use POSIX qw(strftime);
686+
my $time = strftime "%a %b %e %H:%M:%S %Y", gmtime();
687+
my $bits = $self->global->{bits};
688+
my $app_version = $self->global->{app_version};
689+
$h->{my_uname} = "Win32 strawberry-perl $app_version # $now_string x${bits}";
690+
685691
# fix up quoting of values - saves a heap of editing
686692
foreach my $val (values %$h) {
687693
next if $val =~ /^'/; # assumes symmetry, i.e. opening and closing

share/64bit-5.36.0.1.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
i_dbm => 'define',
125125
i_gdbm => 'define',
126126
i_ndbm => 'define',
127-
myuname => 'Win32 strawberry-perl 5.36.0.1 #1 Sat 04 Mar 2023 x64 tempvaluesonly',
127+
#myuname => 'Win32 strawberry-perl 5.36.0.1 #1 Sat 04 Mar 2023 x64 tempvaluesonly',
128128
osvers => '10',
129129
},
130130
},

0 commit comments

Comments
 (0)