#!/bin/sh # $Id$ # Public domain. Originally written 2016, Norbert Preining. # Sign a file for release in TeX Live. Used in tl-update-images, etc. # See tlpkg/gpg/tl-key-extension.txt for some info. if test $# -ne 1; then echo "$0: Exactly one argument must be given, the file to sign." >&2 exit 1 fi # remove previous signature rm -f "$1.asc" prg=gpg gpgopts="--batch --homedir /home/texlive/.gnupg \ --passphrase-file /home/texlive/.gnupg/passphrase \ --local-user 0x06BAB6BC " gpgmainopts="--armor --detach-sign" # use the environment variables if available if test -n "$TL_GNUPG" ; then prg=$TL_GNUPG fi if test -n "$TL_GNUPGOPTS" ; then gpgopts=$TL_GNUPGOPTS fi if test -n "$TL_GNUPGMAINOPTS" ; then gpgmainopts=$TL_GNUPGMAINOPTS fi # sign "$prg" $gpgmainopts $gpgopts "$1"