From 6e34f1504544fa656aca47f9beef13efb995fc64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=9Aliwka?= Date: Sat, 1 Sep 2018 10:28:17 +0200 Subject: [PATCH] Make fatpack output more deterministic This reduces the diff between compiled modules in subsequent commits. --- src/fatpack.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fatpack.pl b/src/fatpack.pl index 93be3b9..48f1617 100755 --- a/src/fatpack.pl +++ b/src/fatpack.pl @@ -106,10 +106,10 @@ do local _ENV = _ENV EOF - while(my ($module, $content) = each %{$modules}) { + foreach my $module (sort keys %{$modules}) { next if ($module eq $mainmodule); - my $effcontent = $content; + my $effcontent = %{$modules}{$module}; # Strip the shebang $effcontent =~ s/^#!.*\n//g;