Sort changelog entry files by file name

This stabilizes the changelog order, preventing non-deterministic
website builds, and also allows ordering the entries manually by
naming the files according to the desired lexicographical order.
This commit is contained in:
Vladimir Panteleev 2017-06-18 03:01:40 +00:00
parent ed24fb4417
commit 3a40c23652
No known key found for this signature in database
GPG key ID: 5004F0FAD051576D

View file

@ -232,6 +232,7 @@ auto readTextChanges(string changelogDir)
return dirEntries(changelogDir, SpanMode.shallow)
.filter!(a => a.name().endsWith(".dd"))
.array.sort()
.map!readChangelog
.filter!(a => a.title.length > 0);
}