#!/bin/sh set -e if [ -z "$1" ] then echo "Logo to generate overlay from was not specified." exit 1 fi DIR="$(dirname "$(which "$0")")" export LOGO_URL="file://$DIR/$1.svg" echo "Generating from $LOGO_URL ..." envsubst < "$DIR/overlay.svg" > overlay.tmp.svg inkscape -o overlay.png overlay.tmp.svg rm overlay.tmp.svg