diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-04 23:59:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-04 23:59:19 +0200 |
| commit | ad44531cdd4e6d8ce77822e6b06a43d19979aae9 (patch) | |
| tree | 72c0146309d3eeef8f19c1d50e70340ae9566df2 /graphics/update | |
| parent | b8e62db42a10067b3e49bd7f8d036ced75e003bb (diff) | |
Fix missing fonts in splash.png and try to prevent graphics update happening with missing fonts.
Diffstat (limited to 'graphics/update')
| -rwxr-xr-x | graphics/update | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/update b/graphics/update index f649d8df8..5fc7aa519 100755 --- a/graphics/update +++ b/graphics/update @@ -12,7 +12,18 @@ if [ `basename $pwd` != "graphics" ]; then exit 1 fi +function required_font() +{ + check=$(fc-list | grep "$1") + if [ "$check" == "" ]; then + echo "Missing font $1" + exit 1 + fi +} + svg_apps="dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch dcpomatic2_player dcpomatic2_playlist dcpomatic2_disk" +required_font "Libre Baskerville" + if [ `uname -s` == "Darwin" ]; then # Convert OS X icons using OS X-only iconutil |
