-#!/bin/bash
+#!/bin/bash -e
#
# Update generated stuff in graphics/ from the source files.
#
# a) getting the wscript right is a complete pain in the arse
# b) running Inkscape from the command line on OS X is a complete pain in the arse
+set -e
+
pwd=`pwd`
if [ `basename $pwd` != "graphics" ]; then
echo "$0: run within graphics/"
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