Module Name: src
Committed By: christos
Date: Sun Jan 26 21:46:49 UTC 2014
Added Files:
src/external/bsd/nvi: addrcsid
Log Message:
add netbsd rcsids (does not handle the regex files well)
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/nvi/addrcsid
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: src/external/bsd/nvi/addrcsid
diff -u /dev/null src/external/bsd/nvi/addrcsid:1.1
--- /dev/null Sun Jan 26 16:46:49 2014
+++ src/external/bsd/nvi/addrcsid Sun Jan 26 16:46:49 2014
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+for i
+do
+sed -e '/^#ifndef lint/ {
+i\
+#include <sys/cdefs.h>\
+#if 0
+}' -e '/^#endif.*not\ lint.*/ {
+a\
+#else\
+__RCSID("$NetBSD: addrcsid,v 1.1 2014/01/26 21:46:49 christos Exp $");\
+#endif
+}' $i > tmp$$ && mv tmp$$ $i
+done