source: openpam/trunk/dist.sh @ 182

Last change on this file since 182 was 171, checked in by Dag-Erling Smørgrav, 17 years ago

Build all man pages when rolling a release.

File size: 444 bytes
Line 
1#!/bin/sh
2#
3# $P4: //depot/projects/openpam/dist.sh#5 $
4#
5
6set -e
7
8release=$(date '+%Y%m%d')
9distname="openpam-${release}"
10
11make cleandir
12make cleandir
13(cd doc/man && make)
14install -d -m 0755 "${distname}"
15grep -v '^#' MANIFEST | while read file; do
16    install -d -m 0755 "${distname}/$(dirname ${file})"
17    install -c -m 0644 "${file}" "${distname}/${file}"
18done
19tar zcf "${distname}.tar.gz" "${distname}"
20rm -rf "${distname}"
21make cleandir
Note: See TracBrowser for help on using the repository browser.