2010-04-15 22:21:29 +04:00
|
|
|
#! /bin/sh
|
2011-02-22 15:56:50 +03:00
|
|
|
# $NetBSD: mkdist,v 1.2 2011/02/22 12:56:50 sborrill Exp $
|
2010-04-15 22:21:29 +04:00
|
|
|
|
|
|
|
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 \
|
2011-02-22 15:56:50 +03:00
|
|
|
--exclude \*~ --exclude \*.orig \
|
2010-04-15 22:21:29 +04:00
|
|
|
-cvzf netbsd-iscsi-$t.tar.gz netbsd-iscsi-$t
|
|
|
|
mv netbsd-iscsi-$t dist
|