NetBSD/external/bsd/iscsi/mkdist

28 lines
564 B
Bash
Executable File

#! /bin/sh
# $NetBSD: mkdist,v 1.2 2011/02/22 12:56:50 sborrill Exp $
case "$#" in
0)
t=$(date +%Y%m%d)
;;
*)
t=$1
;;
esac
ac=ac.$$
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
(cd dist && autoconf && autoheader)
mv dist netbsd-iscsi-$t
tar --exclude CVS --exclude .libs \
--exclude autom4te.cache --exclude \*.lo \
--exclude \*.o --exclude \*.la \
--exclude \*~ --exclude \*.orig \
-cvzf netbsd-iscsi-$t.tar.gz netbsd-iscsi-$t
mv netbsd-iscsi-$t dist