summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
Diffstat (limited to 'source3/script')
-rw-r--r--source3/script/mkproto.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/script/mkproto.awk b/source3/script/mkproto.awk
index 3f3ef1c9fc..78f3fa080b 100644
--- a/source3/script/mkproto.awk
+++ b/source3/script/mkproto.awk
@@ -1,13 +1,22 @@
# generate prototypes for Samba C code
# tridge, June 1996
+# added comment for each source file for use as crude index
+# dan, 17 June 1996
BEGIN {
inheader=0;
+ current_file="";
print "/* This file is automatically generated with \"make proto\". DO NOT EDIT */"
print ""
}
{
+ if (FILENAME!=current_file) {
+ print ""
+ print "/*The following definitions come from ",FILENAME," */"
+ print ""
+ current_file=FILENAME
+ }
if (inheader) {
if (match($0,"[)][ \t]*$")) {
inheader = 0;