Add missing stamp.sh

This commit is contained in:
Hugues Ross 2019-07-21 07:34:21 -04:00
parent 9a7316914b
commit 84ae00ff54

16
stamp.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# The directory to stamp in
EXPORT_DIR=build
if [ -z "$1" ]; then
echo "Error: Missing tag to stamp"
exit 1
fi
# Stamp the provided version number on the screenshot
convert "${EXPORT_DIR}/screenshot.png" \
-gravity southeast -fill "#b9b5c5" -font "DejaVu-Serif" -annotate +0+1 "${1}"\
-gravity southeast -fill "#696b7f" -font "DejaVu-Serif" -annotate -1-0 "${1}"\
-gravity southeast -fill "#b9b5c5" -font "DejaVu-Serif" -annotate 0 "${1}"\
"${EXPORT_DIR}/screenshot.png" || { echo "Failed to stamp versioning info onto ${EXPORT_DIR}/screenshot.png"; exit 1; }