Commit graph

31 commits

Author SHA1 Message Date
Fini Jastrow
659fe757c5 casks: Prettify output
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-12-14 09:45:59 +01:00
Fini Jastrow
48e5201c66 casks: Modernize
* Remove appcast
* Process fonts in alphabetical order
* Skip fonts where no checksum can be determined
* Add livecheck
* Add description
* Fail generation on any error in the script

[notes]
* The code to work without checksum (:no_check) did not work anyhow

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-12-14 09:45:59 +01:00
Fini Jastrow
bafbb372c3 casks: Clean up whitespace
[why]
Several different indentations methods used here. That confuses me and I
want to edit this file.

[how]
Unify to '4 blanks' as used in other (recently edited) files.
Unify if-then and while-do syntax.

Also replace single quotes with double quite in the cask file.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-12-14 09:45:59 +01:00
Finii
cdcf7a5a30 [ci] Bump release version 2022-10-07 11:55:35 +00:00
Finii
9c950dc385 [ci] Bump release version 2022-09-07 08:05:53 +00:00
Fini Jastrow
6c2d3ec752 CI: Fix cask artifact upload
[why]
The casks-artifact is empty.

[how]
Supply the correct path for the upload.
For this the generator script prints the output pathname(s),
which in turn are used in the CI.

Also drop unneeded '/' from path end.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-30 10:46:51 +02:00
Finii
aff362ab36 [ci] Bump release version 2022-08-26 22:15:32 +00:00
Finii
572221ec32 [ci] Bump release version 2022-08-26 16:44:55 +00:00
Fini Jastrow
4c69402911 generate-casks: Fix separation of non-mono and mono fonts
[why]
The filter expects 'Mono' to be the last part of the font filename. With
font-patcher's --makegroups that is not the case anymore, because in
fact 'Mono' is part of the font name and the font filename ends in the
style (i.e. 'Italic').

[how]
Because we do only create 'Complete' fonts, and 'Mono' is always after
'Complete' (i.e. 'Complete Mono') for both veriants created by the
font-patcher, we can use that to select mono fonts.

[note]
Also bump script version after several changes.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-26 09:32:26 +02:00
Fini Jastrow
e188061e04 generate-casks: Fix display of currently processed font
[why]
The script shows
  # [Nerd Fonts]  Generating cask for: .
for any font it processes.

[how]
Well, the variable naming is a bit strange, maybe that is the reason for
the bug? We already have the font name in another variable, use that.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-26 09:32:26 +02:00
Fini Jastrow
e7af933fdf generate-casks: Allow to specify pattern
[why]
The CI uses the script with the font-matrix name, to regenerate the cask
of just one font. But the script is ignoring the parmeter and generates
all casks.

[how]
Allow to specify a regex pattern as first parameter and limit the
processing to that font(s), as done in archive-fonts.sh

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-26 09:32:26 +02:00
Fini Jastrow
e7722458fc archive-fonts: Fix missing readme in archive
[why]
When run on more than one font the mini-readme is only added to the
first created archive.

[how]
Remove the readme file only after all archives have been generated.

[note]
Also rewrite `find` command, to actually do some work. The formulation
was rather odd, using a shell glob to find the directories and `find` to
select one.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-26 09:32:26 +02: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
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
e8cf985c63 ShellCheck fixes WIP (related to #120) 2018-01-12 21:05:05 -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
6af2fdc8d7 Bumps project version numbers of scripts for v1.1.0 release 2017-07-30 18:02:58 -04:00
morrme
7b41e7b298 add [Nerd Fonts] prefix to output 2017-05-13 17:02:53 -05:00
Ryan L McIntyre
d1e58f4770 Added minor fixes and improvements to scripts
* Adds pattern param to archive script
* Adds mindepth to generate casks script (to prevent cask with all fonts)
2017-01-15 17:23:30 -05:00
Ryan L McIntyre
17f9ee5db6 Updates versioning info for v1.0.0 2016-12-14 20:22:26 -05:00
Ryan L McIntyre
ece4978fc3 Homebrew Fonts Cask script improvements (#72)
* fixes cask names generated as the same for mono and non-mono cask files
2016-12-03 14:59:57 -05:00
Ryan L McIntyre
605d8a0d9b Homebrew Fonts Cask script improves and refactoring (#72)
* separates mono and non-mono into separate cask files
* refactoring of logic
2016-12-02 22:56:52 -05:00
Ryan L McIntyre
08d78168ff Fixes issue with interpolation (use double quotes) from feedback on homebrew fonts WIP RFC PR 2016-11-20 19:48:01 -05:00
Ryan L McIntyre
d9a0a9ba2f Updates script with fixes and cleans up debugging 2016-11-20 19:33:49 -05:00
Ryan L McIntyre
6c34db56c4 Homebrew Fonts Cask script feedback fixes (WIP) (#72) 2016-11-16 18:19:58 -05:00
Ryan L McIntyre
0d55b359ae Homebrew Fonts Cask script feedback fixes (WIP) (#72) 2016-11-13 12:22:10 -05:00
Ryan L McIntyre
d195059089 Homebrew Fonts Cask script feedback fixes (WIP) (#72) 2016-11-11 07:56:49 -05:00
Ryan L McIntyre
3b44fa3d59 Clean-up test & debug code 2016-11-06 11:21:25 -05:00
Ryan L McIntyre
d2ee06bdfd Proof of concept script to build Ruby Font Casks for installing the fonts on Homebrew Cask (fixes #72) 2016-11-05 23:09:12 -04:00