view misc/gen-dist @ 56:f6a6f55b7b9e

added old manual from the old website it is dated May/July 2000
author meillo@marmaro.de
date Sat, 29 May 2010 21:51:13 +0200
parents 1761b3bde646
children e119cee8d493
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 DESTINATION" 2>&1
	exit 1
fi

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

hg archive -t tgz "$1"

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