13
0

tools: make ardour.keys generation reproducible

By default perl hashes are random when iterating over them this makes
ardour not reproducible. As it ships with a random order generated
ardour.keys file, simply sorting the keys before iterating over them
makes the file reproducible.

Motivation: https://reproducible-builds.org
This commit is contained in:
Jelle van der Waa 2020-01-20 16:59:00 +01:00
parent 978de93cf2
commit 120be1576a

View File

@ -309,7 +309,7 @@ while (<SOURCE>) {
if ($make_accelmap) { if ($make_accelmap) {
print "<BindingSet name=\"" . $bindings_name . "\">\n"; print "<BindingSet name=\"" . $bindings_name . "\">\n";
foreach $owner (keys %owner_bindings) { foreach $owner (sort keys %owner_bindings) {
print " <Bindings name=\"$owner\">\n <Press>\n"; print " <Bindings name=\"$owner\">\n <Press>\n";
$bindings = $owner_bindings{$owner}; $bindings = $owner_bindings{$owner};
shift (@$bindings); # remove initial empty element shift (@$bindings); # remove initial empty element