view misc/gen-dist @ 59:941413084f56

updated docs; moved files around updated the INSTALL file with content from the old website moved *agenda* and *ipaq files to docs (are they still relevant?)
author meillo@marmaro.de
date Sat, 29 May 2010 22:53:42 +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"