source: openpam/trunk/dist.sh @ 118

Last change on this file since 118 was 118, checked in by Dag-Erling Smørgrav, 19 years ago

Stuff the tarball in /tmp.

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