#!/bin/sh # # pgp-mime-sig-description # # Update the PGP MIME signature description meta data # # Copyright © 2016 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # set -eu MIME_HEADER="Content-Type: application\/pgp-signature" DESCRIPTION="Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)" sed -i -e "/^${MIME_HEADER}/s/signature.asc/digital_signature_gpg.asc/; /^${MIME_HEADER}/aContent-Description: $DESCRIPTION" "$1"