#!/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