summaryrefslogtreecommitdiff
path: root/graphics/update
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-30 14:41:45 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-30 14:41:45 +0000
commita435cb6540d462fd914eb83a32b60a1224cf76e8 (patch)
tree2a28f55748e64939cfc2010009139697acd68907 /graphics/update
parent8d8ab94c92627f6d023e91f3c8683b4403e422fd (diff)
Graphics update.v2.13.80
Diffstat (limited to 'graphics/update')
-rwxr-xr-xgraphics/update13
1 files changed, 10 insertions, 3 deletions
diff --git a/graphics/update b/graphics/update
index 68656a25d..42e8f5e8f 100755
--- a/graphics/update
+++ b/graphics/update
@@ -8,10 +8,17 @@
pwd=`pwd`
if [ `basename $pwd` != "graphics" ]; then
- echo "$0: run within graphics/"
- exit 1
+ echo "$0: run within graphics/"
+ exit 1
fi
+for c in icotool convert inkscape; do
+ if [ ! -x "$(command -v $c)" ]; then
+ echo "$c is required"
+ exit 1
+ fi
+done
+
if [ `uname -s` == "Darwin" ]; then
# Convert OS X icons using OS X-only iconutil
for p in dcpomatic2 dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch dcpomatic2_player; do
@@ -47,7 +54,7 @@ else
# Windows application icons
mkdir -p windows
- for p in dcpomatic2 dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch dcpomatic2_player; do
+ for p in dcpomatic2 dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch dcpomatic2_player dcpomatic2_playlist; do
icotool -c -o windows/$p.ico linux/16/$p.png linux/32/$p.png linux/48/$p.png linux/64/$p.png linux/128/$p.png
done
convert src/dcpomatic.png -resize 400x400 windows/dcpomatic.bmp