OpenPAM/dist.sh
Dag-Erling Smørgrav 2b0eb75262 Build everything (rather than just the man pages) so the release
will fail if the code won't build.  Finish the release by showing
the MD5 checksum of the tarball.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@218 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:45:45 +00:00

27 lines
521 B
Bash

#!/bin/sh
#
# $P4: //depot/projects/openpam/dist.sh#6 $
#
set -e
release=$(date '+%Y%m%d')
distname="openpam-${release}"
tarball="${distname}.tar.gz"
make cleandir
make cleandir
make depend && make
install -d -m 0755 "${distname}"
grep -v '^#' MANIFEST | while read file; do
install -d -m 0755 "${distname}/$(dirname ${file})" || exit 1
install -c -m 0644 "${file}" "${distname}/${file}" || exit 1
done
tar zcf "${tarball}" "${distname}"
rm -rf "${distname}"
make cleandir
make cleandir
echo
md5 "${tarball}"