Subject: Re: show the revision of files in the bulk logs
To: None <pkgsrc-bulk@NetBSD.org>
From: Roland Illig <roland.illig@gmx.de>
List: pkgsrc-bulk
Date: 04/28/2005 10:20:48
This is a multi-part message in MIME format.
--------------080000060706080200070403
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I forgot the patch. :)

Roland

--------------080000060706080200070403
Content-Type: text/plain;
 name="bsd.pkg.mk-show-ident.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="bsd.pkg.mk-show-ident.patch"

Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1617
diff -u -p -r1.1617 bsd.pkg.mk
--- bsd.pkg.mk	25 Apr 2005 16:47:18 -0000	1.1617
+++ bsd.pkg.mk	28 Apr 2005 08:13:55 -0000
@@ -5088,3 +5088,16 @@ PKG_ERROR_HANDLER.${_class_}?=	{					\
 		exit $$ec;						\
 	}
 .endfor
+
+IDENT_FILES?=	# empty
+IDENT_FILES+=	*
+IDENT_FILES+=	${FILESDIR:Q}/*
+IDENT_FILES+=	${PATCHDIR:Q}/patch-*
+.PHONY: show-ident
+show-ident:
+	${_PKG_SILENT}${_PKG_DEBUG}					\
+	for i in ${IDENT_FILES}; do					\
+		if ${TEST} -f "$$i"; then				\
+			${SED} -n -e 's/.*\($$NetBSD:.*$$\).*/\1/p' "$$i"; \
+		fi;							\
+	done

--------------080000060706080200070403--