masqmail

diff misc/gen-dist @ 47:315b74beec1a

added a script to generate a release
author meillo@marmaro.de
date Thu, 20 May 2010 21:21:22 +0200
parents
children 1761b3bde646
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/misc/gen-dist	Thu May 20 21:21:22 2010 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# generate a tar.gz archive to distribute
     1.7 +# generate an md5sum and a detached signature of the archive
     1.8 +#
     1.9 +# requires:
    1.10 +# - mercurial (hg)
    1.11 +# - md5sum
    1.12 +# - gnupg
    1.13 +
    1.14 +if [ $# -ne 1 -o -e "$1" ] ; then
    1.15 +	echo "usage: gen-dist DESTINATION" 2>&1
    1.16 +	exit 1
    1.17 +fi
    1.18 +
    1.19 +hg archive -t tgz "$1"
    1.20 +md5sum "$1" > "$1.md5sum"
    1.21 +gpg -ab "$1"