Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / crypto / external / bsd / netpgp / mkdist
blob4ff80f7459e9bdbf162d0e9f7b893e1937a97ba2
1 #! /bin/sh
3 case "$#" in
4 0)
5 t=$(date +%Y%m%d)
6 ;;
7 *)
8 t=$1
9 ;;
10 esac
11 ac=ac.$$
12 awk -F, -v t=$t '/AC_INIT/ { printf("%s,[%s],%s\n", $1, t, $3); next} { print }' dist/configure.ac > $ac && mv $ac dist/configure.ac
13 (cd dist && autoconf && autoheader)
14 mv dist netpgp-$t
15 tar --exclude CVS --exclude .libs --exclude autom4te.cache --exclude \*.lo --exclude \*.o --exclude \*.la -cvzf netpgp-$t.tar.gz netpgp-$t
16 mv netpgp-$t dist