summaryrefslogtreecommitdiff
path: root/MKDIST.in
blob: 1c6e64fdee677c64158ea994d65db30c7dcb0d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# Create archive
#
REL="Pound-@VERSION@"
mkdir "$REL"
mkdir "$REL"/build "$REL"/include "$REL"/man "$REL"/src "$REL"/pound
cp CMakeLists.txt README.md MKDIST.in GPL.txt "$REL"
cp build/.keep "$REL"/build
cp include/pound.h.in include/utarray.h include/uthash.h include/hpack.h "$REL"/include
cp man/pound.8 "$REL"/man
cp src/backend.c src/config.c src/http.c src/http2.c src/pound.c src/util.c src/hpack.c "$REL"/src
cp pound/pound.png pound/UTHASH.txt "$REL"/pound
rm -f "$REL".tgz "$REL".asc
tar -cvzf "$REL".tgz "$REL"
rm -fr "$REL"
#
# Sign archive
#
gpg --output "$REL".asc --detach-sig --armor "$REL".tgz