Professional Subversion Hosting
Free SVN Hosting, SSL, ACLs, Petabyte Storage | |||||||||||||||||||||||||||||||||||||||||
|
The example below shows how keywords in a template file are substituted in the output file. // Test file for SubWCRev char *Revision = "$WCREV$"; char *Modified = "$WCMODSЁModified:Not modified$"; char *Date = "$WCDATE$"; char *RevRange = "$WCRANGE$"; char *Mixed = "$WCMIXEDЁMixed revision WC:Not mixed$"; char *URL = "$WCURL$"; #if $WCMODSЁ1:0$ #error Source is modified #endif // EndOfFile After running SubWCRev.exe, the output file looks like this: // Test file for SubWCRev char *Revision = "3701"; char *Modified = "Modified"; char *Date = "2005/06/15 11:15:12"; char *RevRange = "3699:3701"; char *Mixed = "Mixed revision WC"; char *URL = "http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/src/SubWCRev"; #if 1 #error Source is modified #endif // EndOfFile | All Plans Include
| ||||||||||||||||||||||||||||||||||||||||