#!/bin/bash

############################################################################################
#
# sbwg-describe Adds adescription (XMP tag) to a files that is to be used as attachment
#               files to a SBWG entry.
# Version:      0.0.1
# Last edited:  2022-10-15
#
############################################################################################

if (( ${#} != 2 )); then
  printf 'Usage: %s DESCRIPTION_STRING FILENAME\n' "${BASH_SOURCE[0]}"
  exit
fi

scriptdir="$(readlink -f "${BASH_SOURCE[0]%/*}")"
exiftool -config "${scriptdir}"/exiftool.config -XMP:SBWG_Description="${1}" "${2}"
