NetBSD/external/bsd/iscsi/mkdist

28 lines
564 B
Plaintext
Raw Normal View History

#! /bin/sh
2011-02-22 15:56:50 +03:00
# $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 \
2011-02-22 15:56:50 +03:00
--exclude \*~ --exclude \*.orig \
-cvzf netbsd-iscsi-$t.tar.gz netbsd-iscsi-$t
mv netbsd-iscsi-$t dist