1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-13 03:03:33 +02:00
nerd-fonts/bin/scripts
Fini Jastrow 7bc729e27a gotta-patch-em-all: Allow to specify directory filter
[why]
We can limit the font files to patch with the gotta-patch-em-all script
to some specific file names; the case insensitive beginning of the
basename of the font file, to be specific.

Sometimes we do not know how the actual font files are named, we just
know the directory name.

[how]
The old filter checked for the beginning of a file name, so we keep this
behavior and allow to check for the beginning of a directory name.

As differentiator the first character of the passed filter is used. As a
slash is not allowed in the file name filters: If the first char is a
slash, we search for font files in a directory that begins with that
name. The file name is not considered in this case.

Examples:

gotta-patch-em-all-font-patcher!.sh Fira

  Patches all font files that begin (case insensitive) with 'fira'.
  It must be the basename of the font file, the path to the file is not
  considered. (Old behavior.)
  Translated to a glob this is roughly **/Fira*.[ot]tf

gotta-patch-em-all-font-patcher!.sh /Fira

  Patches all font files that are in directories that begin (case
  insensitive) with 'fira'. It can not be the beginning of the font
  file basename.
  Translated to a glob this is roughly **/Fira*/**/*.[ot]tf

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-18 11:14:12 +02:00
..
Hack Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
lib Tweak RC for less fonts and try wildcard pattern for artifact upload, comments out commit for now 2022-01-01 07:50:03 -08:00
archive-font-patcher.sh Fixes use of archive, archive patcher and cleanup 2022-01-03 00:53:22 -08:00
archive-fonts.sh Tweaks and improvements to archive and upload scripts to work in actions 2021-11-21 07:29:23 -08:00
css-header.txt Adds notice that font path needs to be changed 2017-07-29 21:21:56 -04:00
docker-entrypoint.sh Merge branch 'master' into docker 2021-11-26 18:13:11 -08:00
fpfix.py add combined prefix to fpfix.py 2017-05-19 03:11:58 -05:00
generate-casks.sh Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
generate-css.sh Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
generate-font-image-previews.sh Updates script to use json data file instead of fc-list 2019-09-12 14:22:39 -07:00
generate-fontconfig.sh Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
generate-glyph-info-from-set.py Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
get-font-names-from-json.sh RC: use all fonts for matrix 2022-01-03 05:50:16 -08:00
gotta-patch-em-all-font-patcher!.sh gotta-patch-em-all: Allow to specify directory filter 2022-08-18 11:14:12 +02:00
release.sh Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
standardize-and-complete-readmes.sh Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
test-fonts.sh Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
test-powerlines.sh Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
tests.sh Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
update-all-contributors-website.py Adds a very basic script to update all contributors section on the website 2020-04-06 01:02:15 -07:00
upload-archives.sh Setup release action to pull version from file and commit back upon patching 2021-12-24 03:07:20 -08:00
version-bump.sh Workflow for building release candidate 2021-11-21 09:05:02 -08:00