Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/iscsi Add mkdist to build a distribution tarbal...
details: https://anonhg.NetBSD.org/src/rev/39a24b70fe82
branches: trunk
changeset: 753998:39a24b70fe82
user: sborrill <sborrill%NetBSD.org@localhost>
date: Thu Apr 15 18:21:29 2010 +0000
description:
Add mkdist to build a distribution tarball based on the one in netpgp
diffstat:
external/bsd/iscsi/mkdist | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diffs (31 lines):
diff -r 01a621635ed3 -r 39a24b70fe82 external/bsd/iscsi/mkdist
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/iscsi/mkdist Thu Apr 15 18:21:29 2010 +0000
@@ -0,0 +1,27 @@
+#! /bin/sh
+# $NetBSD: mkdist,v 1.1 2010/04/15 18:21:29 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 \*~ \
+ -cvzf netbsd-iscsi-$t.tar.gz netbsd-iscsi-$t
+mv netbsd-iscsi-$t dist
Home |
Main Index |
Thread Index |
Old Index