2020-12-23 18:22:15 +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")")"
|
|
|
|
|
2021-12-27 12:44:29 +01:00
|
|
|
export LOGO_URL="file://$DIR/$1.svg"
|
|
|
|
echo "Generating from $LOGO_URL ..."
|
2020-12-23 18:22:15 +01:00
|
|
|
envsubst < "$DIR/overlay.svg" > overlay.tmp.svg
|
|
|
|
|
|
|
|
inkscape -o overlay.png overlay.tmp.svg
|
|
|
|
rm overlay.tmp.svg
|