Skip to content

Commit

Permalink
Adds ability to pass in font name to filter the find by
Browse files Browse the repository at this point in the history
* instead of having dirty/hacky comment/uncomment code for testing
  • Loading branch information
ryanoasis committed Aug 17, 2019
1 parent bb28b5d commit 84d4eab
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions bin/scripts/standardize-and-complete-readmes.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Nerd Fonts Version: 2.0.0
# Script Version: 1.0.0
# Script Version: 1.1.0
# Iterates over all patched fonts directories
# converts all non markdown readmes to markdown (e.g., txt, rst) using pandoc
# adds information on additional-variations and complete font variations
Expand Down Expand Up @@ -39,14 +39,17 @@ function clearDestination {
true > "$to" 2> /dev/null
}

#find ./ProFont -type d | # uncomment to test 1 font (with txt)
#find ./DejaVuSansMono -type d | # uncomment to test 1 font (with rst)
#find ./Hasklig -type d | # uncomment to test 1 font
#find ./Hack -type d | # uncomment to test 1 font (with md)
#find ./Gohu -type d | # uncomment to test 1 font (no readme files)
#find ./FiraCode -type d | # uncomment to test 1 font (no readme files)
#find ./Hermit -type d | # uncomment to test 1 font (no readme files)
find . -type d | # uncomment to do ALL fonts
if [ $# -eq 1 ]; then
like_pattern="./$1"
# allows one to limit to specific font.
# e.g. with ProFont, DejaVuSansMon, Hasklig, Hack, Gohu, FiraCode, Hermit, etc.
echo "$LINE_PREFIX Parameter given, limiting find command of directories to pattern '$like_pattern' given"
else
like_pattern="."
echo "$LINE_PREFIX No parameter pattern given, generating standardized readmes for all fonts in all font directories"
fi

find "$like_pattern" -type d |
while read -r filename
do

Expand Down

0 comments on commit 84d4eab

Please sign in to comment.