annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
47
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
1 #!/bin/sh
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
2 #
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
3 # generate a tar.gz archive to distribute
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
4 # generate an md5sum and a detached signature of the archive
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
5 #
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
6 # requires:
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
7 # - mercurial (hg)
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
8 # - md5sum
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
9 # - gnupg
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
10
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
11 if [ $# -ne 1 -o -e "$1" ] ; then
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
12 echo "usage: gen-dist DESTINATION" 2>&1
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
13 exit 1
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
14 fi
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
15
50
1761b3bde646 fixed wrong paths in the md5sum file (gen-dist)
meillo@marmaro.de
parents: 47
diff changeset
16 dir="${1%/*}"
1761b3bde646 fixed wrong paths in the md5sum file (gen-dist)
meillo@marmaro.de
parents: 47
diff changeset
17 file="${1##*/}"
1761b3bde646 fixed wrong paths in the md5sum file (gen-dist)
meillo@marmaro.de
parents: 47
diff changeset
18
47
315b74beec1a added a script to generate a release
meillo@marmaro.de
parents:
diff changeset
19 hg archive -t tgz "$1"
50
1761b3bde646 fixed wrong paths in the md5sum file (gen-dist)
meillo@marmaro.de
parents: 47
diff changeset
20
1761b3bde646 fixed wrong paths in the md5sum file (gen-dist)
meillo@marmaro.de
parents: 47
diff changeset
21 cd "$dir"
1761b3bde646 fixed wrong paths in the md5sum file (gen-dist)
meillo@marmaro.de
parents: 47
diff changeset
22 md5sum "$file" >"$file.md5sum"
1761b3bde646 fixed wrong paths in the md5sum file (gen-dist)
meillo@marmaro.de
parents: 47
diff changeset
23 gpg -ab "$file"