[p4] Editing files before checking in.

Paul Goffin PGoffin at baltimore.com
Fri Jun 8 00:36:16 PDT 2001


>  If we want to make a copyright to be on top of each source file,

>  Is there a way we can put the copyright in perforce, then 
> write a script
> that puts the copyright into the code when it is checked out 
> or built? Or
> something similar?

Can't really be done in Perforce (you can write script wrappers
if you user the command line, but that's about it).

However, ee've implemented a demon process on the server that parses
submitted files and emails the author (with copy to the administrator)
if the copyright statement is missing.  This works surprisingly
well...

Paul.


-----------------------------------------------------------------------------------------------------------------
The information contained in this message is confidential and is intended 
for the addressee(s) only.  If you have received this message in error or 
there are any problems please notify the originator immediately.  The 
unauthorized use, disclosure, copying or alteration of this message is 
strictly forbidden. Baltimore Technologies plc will not be liable for direct, 
special, indirect or consequential damages arising from alteration of the 
contents of this message by a third party or as a result of any virus being 
passed on.

In addition, certain Marketing collateral may be added from time to time to 
promote Baltimore Technologies products, services, Global e-Security or 
appearance at trade shows and conferences.
 
This footnote confirms that this email message has been swept by 
Baltimore MIMEsweeper for Content Security threats, including
computer viruses.



More information about the perforce-user mailing list