1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-13 17:18:37 +02:00
Commit Graph

35 Commits

Author SHA1 Message Date
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
Fini Jastrow
f287b97048 gotta-patch-em-all: Return error when no file patched
[why]
When we do CI we probably want to raise an error if no font file could
be found.

[how]
Check how many font files have been generated and return with exit
code 1 if the number is zero.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-18 11:14:12 +02:00
RL-S
f18c02f345 Allow running gotta-patch-em-all from any dir
The script assumes that it's run from inside bin/scripts, by setting source and target directories according to the output of pwd. It doesn't perform any checks whether it's run from the right directory, so it just doesn't find the fonts if the working directory is different.
Now it sets the directories relative to the script directory.
2022-07-26 15:40:45 +02:00
Ryan L McIntyre
97f28f4a17 Fix info and license generation going to incorrect files 2021-12-11 13:43:48 -08:00
Ryan L McIntyre
5f748cdb10 Updates regex for matching more license files (issue #463) 2020-04-13 14:52:33 -07:00
Ryan L McIntyre
85eb82d430 Adds license files to release archives 2020-04-13 02:41:52 -07:00
Ryan L McIntyre
9bbf817f77 Add license files to patched font directory and subdirectories as well as some clean-up and refactoring 2020-04-12 03:52:31 -07:00
Ryan L McIntyre
bc12c2281f Add support for generating info as well as specifying a like pattern (first param to script) 2020-04-12 03:51:29 -07:00
Ryan L McIntyre
8566c6539e Updates scripts in preparation for for v2.1.0 2019-11-03 09:08:39 -08:00
Andrew Newman
e8e191a1be Update bash shebangs 2018-07-09 18:18:12 +03:00
Ryan L McIntyre
84a6bc8419 Updates counts and missing combinations from generation 2018-03-18 18:00:26 -04:00
Ryan L McIntyre
916a3d0634 Fixes search to be case insensitive 2018-03-10 21:39:34 -05:00
Ryan L McIntyre
b7931da607 Updates version metadata consistency 2018-03-03 14:14:55 -05:00
Ryan L McIntyre
f8fda5c985 Version bumps in preparation for v2.0.0 release 2018-02-26 05:43:15 -05:00
Ryan L McIntyre
3c128eee3b Updates build patcher to use new flags/options 2018-02-25 21:52:36 -05:00
Ryan L McIntyre
338b0c6bdc ShellCheck fixes WIP (related to #120) 2018-01-12 22:20:52 -05:00
Ryan L McIntyre
a57f79c2c1 Bumps project version numbers of scripts for v1.2.0 release 2017-11-18 16:01:37 -05:00
Ryan L McIntyre
ccd0e7421a Fixes 'font typefaces count' in script 2017-08-20 13:56:05 -04:00
Ryan L McIntyre
6af2fdc8d7 Bumps project version numbers of scripts for v1.1.0 release 2017-07-30 18:02:58 -04:00
Ryan L McIntyre
785d2839aa Adds example of rebuilding only the readme files 2017-07-29 21:21:11 -04:00
Ryan L McIntyre
50a0e91bd8 Clean-up 2017-07-29 13:50:37 -04:00
reujab
3a2cc32662 fixed links 2017-07-28 16:29:44 -04:00
Ryan L McIntyre
b3329db297 Fixes for generating readmes (#136) 2017-07-23 21:26:35 -04:00
Ryan L McIntyre
432671a75e Improvements to font readme generation (fixes #136)
- fixes missing readme at root dir of each font
- adds addendum clarifying reserved font names
- adds readme even if source font folder has none
- fixes parent directory re-build
2017-07-23 11:32:46 -04:00
morrme
0077f2c2f5 replace hard coded prefix with constant 2017-05-19 03:17:45 -05:00
morrme
7b41e7b298 add [Nerd Fonts] prefix to output 2017-05-13 17:02:53 -05:00
Ryan L McIntyre
097977e892 Fixes statistic calculations and formatting 2016-12-15 00:07:04 -05:00
Ryan L McIntyre
62fbb28cc3 Updates batch font script and fixes issues with postprocessing Hack (completes fixes #70) 2016-12-14 21:50:36 -05:00
Ryan L McIntyre
17f9ee5db6 Updates versioning info for v1.0.0 2016-12-14 20:22:26 -05:00
Ryan L McIntyre
a6071cdf35 Separates iterator into 2 for patching (as background/parallel processes) and another for generating font info (like counts), misc fixes and clean-up 2016-11-20 19:33:49 -05:00
Ryan L McIntyre
cf010a5035 Fixed background parallel processes to have a configurable maximum number 2016-11-06 17:04:53 -05:00
Ryan L McIntyre
b51e71f746 Fixes to no-progressbars flag in the build + misc lint fixes 2016-11-06 11:29:35 -05:00
Ryan L McIntyre
c7f64a616c Fixes missing patching non-mono version and updating count 2016-11-05 22:59:22 -04:00
Ryan L McIntyre
371f189d32 Total count fix, clean-up, and lint fixes 2016-10-31 22:01:00 -04:00
Ryan L McIntyre
e72a164f80 Moves build related shell scripts to bin/scripts 2016-10-29 16:45:55 -04:00