Mercurial > masqmail
annotate misc/gen-dist @ 117:5ec5e6637049
added server-side SMTP SIZE support (patch by Paolo)
``SIZE 0'' (= unlimited) is currently not supported
client-side support was already implemented
author | meillo@marmaro.de |
---|---|
date | Thu, 01 Jul 2010 13:08:53 +0200 |
parents | b212da6385a8 |
children |
rev | line source |
---|---|
47 | 1 #!/bin/sh |
2 # | |
3 # generate a tar.gz archive to distribute | |
4 # generate an md5sum and a detached signature of the archive | |
5 # | |
6 # requires: | |
7 # - mercurial (hg) | |
8 # - md5sum | |
9 # - gnupg | |
10 | |
11 if [ $# -ne 1 -o -e "$1" ] ; then | |
60 | 12 echo "usage: gen-dist DEST.tar.gz" 2>&1 |
47 | 13 exit 1 |
14 fi | |
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 |
104
b212da6385a8
remove all mercurial files from distribution
meillo@marmaro.de
parents:
60
diff
changeset
|
19 hg archive -t tgz -X .hg\* "$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" |