www.franconian.net/static/gen-overlay720.sh

18 lines
310 B
Bash
Raw Permalink Normal View History

2020-12-28 00:57:40 +01:00
#!/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/logoGen/$1.svg"
envsubst < "$DIR/overlay720.svg" > overlay720.tmp.svg
inkscape -o overlay720.png overlay720.tmp.svg
rm overlay720.tmp.svg