generate-fontconfig: Create sorted config

[why]
Even when the logical content does not change we will get a new commit
on recreation because the order can/will be different.

[how]
Put the fonts in alphabetical order in the config file.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2022-08-25 11:03:18 +02:00
parent 4c69402911
commit c292e7e8c6

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Nerd Fonts Version: 2.1.0 # Nerd Fonts Version: 2.1.0
# Script Version: 1.0.0 # Script Version: 1.0.1
# Iterates over all patched fonts directories # Iterates over all patched fonts directories
# to generate a fontconfig based on the Nerd Fonts Symbols font # to generate a fontconfig based on the Nerd Fonts Symbols font
# that contains only the glyphs # that contains only the glyphs
@ -41,7 +41,7 @@ echo "$LINE_PREFIX Generating fontconfig for: monospace"
} >> "$to" } >> "$to"
#find ./Hack -maxdepth 0 -type d | # uncomment to test 1 font #find ./Hack -maxdepth 0 -type d | # uncomment to test 1 font
find . -maxdepth 1 -type d | # uncomment to get all fonts find . -maxdepth 1 -type d | sort | # uncomment to get all fonts
while read -r filename while read -r filename
do do