view misc/gen-dist @ 171:349518b940db

added support for STARTTLS wrappers added the route config option `instant_helo' which causes masqmail, as SMTP client, not to wait for the server's 220 greeting. Instead if says EHLO right at once. You'll need this for STARTTLS wrappers that usually eat the greeting line.
author meillo@marmaro.de
date Thu, 22 Jul 2010 23:30:05 +0200 (2010-07-22)
parents b212da6385a8
children
line wrap: on
line source
#!/bin/sh
#
# generate a tar.gz archive to distribute
# generate an md5sum and a detached signature of the archive
#
# requires:
# - mercurial (hg)
# - md5sum
# - gnupg

if [ $# -ne 1 -o -e "$1" ] ; then
	echo "usage: gen-dist DEST.tar.gz" 2>&1
	exit 1
fi

dir="${1%/*}"
file="${1##*/}"

hg archive -t tgz -X .hg\* "$1"

cd "$dir"
md5sum "$file" >"$file.md5sum"
gpg -ab "$file"