A no-longer-supported configuration management tool called sccs provided a utility called what. You could use this utility to print all strings of the form "@(#) text" found in the executable image. It was up to you to embed a relevant string of this sort in each source file. sccs provided keyword expansion features that made it easier to create the what strings. You also had to be careful that the string wasn't optimized out of the object file.
Comment