diff --git a/stamp.sh b/stamp.sh new file mode 100755 index 0000000..0ef181d --- /dev/null +++ b/stamp.sh @@ -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; }