mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-19 03:12:07 +02:00
Stabilize sorting in fontconfig and casks
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
9c8a91342c
commit
f4ca28cd71
@ -206,7 +206,7 @@ if [ "$pattern" = "" ]; then
|
||||
pattern=".*"
|
||||
fi
|
||||
|
||||
find . -maxdepth 1 -mindepth 1 -type f -iregex "\./$pattern" -regex ".*\.zip" | sort |
|
||||
find . -maxdepth 1 -mindepth 1 -type f -iregex "\./$pattern" -regex ".*\.zip" | LC_ALL=C sort |
|
||||
while read -r filename; do
|
||||
|
||||
dirname=$(dirname "$filename")
|
||||
@ -233,7 +233,7 @@ while read -r filename; do
|
||||
FONTS=()
|
||||
while IFS= read -d $'\0' -r file; do
|
||||
FONTS=("${FONTS[@]}" "$file")
|
||||
done < <(find "$searchdir" -type f -iwholename '*complete*' \( -iname '*.[ot]tf' ! -wholename '*Windows Compatible*' \) -print0 | sort -z)
|
||||
done < <(find "$searchdir" -type f -iwholename '*complete*' \( -iname '*.[ot]tf' ! -wholename '*Windows Compatible*' \) -print0 | LC_ALL=C sort -z)
|
||||
|
||||
outputdir=$PWD/../casks
|
||||
|
||||
|
@ -41,7 +41,7 @@ echo "$LINE_PREFIX Generating fontconfig for: monospace"
|
||||
} >> "$to"
|
||||
|
||||
#find ./Hack -maxdepth 0 -type d | # uncomment to test 1 font
|
||||
find . -mindepth 1 -maxdepth 1 -type d | sort | # uncomment to get all fonts
|
||||
find . -mindepth 1 -maxdepth 1 -type d | LC_ALL=C sort | # uncomment to get all fonts
|
||||
while read -r filename
|
||||
do
|
||||
|
||||
@ -51,7 +51,7 @@ do
|
||||
while IFS= read -d $'\0' -r file ; do
|
||||
FONTS=("${FONTS[@]}" "$file")
|
||||
# limit to first variation of family (folder)
|
||||
done < <(find "$searchdir" -type f -iname '*.[ot]tf' -print0)
|
||||
done < <(find "$searchdir" -type f -iname '*.[ot]tf' -print0 | LC_ALL=C sort -z)
|
||||
#done
|
||||
|
||||
for font in "${FONTS[@]}"; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user