Changeset 176 for trunk/tools
- Timestamp:
- Mar 12, 2016, 12:25:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/AddToFile.cmd
r154 r176 4 4 * AddToFile.cmd FileName,PrefixString,Function[,Parameters...] 5 5 * 6 * Examples: 6 7 * AddToFile.cmd FileName,#define DDATE,DATEL 7 8 * Adds today's date to Filename: #define DDATE 20130312L … … 60 61 end 61 62 62 when (What="VERSION") then do 63 Version = '12.345'; 64 say 'Setting '||String||' to '||Version; 65 rc=lineout(OutFile, String||'='||Version); 63 when (What="VERSIONMAJOR") then do 64 parse var ProjVendor Major'.'Minor'.'Revision; 65 rc=lineout(OutFile, String||' '||FORMAT(Major)); 66 rc=lineout(OutFile); 67 end 68 69 when (What="VERSIONMINOR") then do 70 parse var ProjVendor Major'.'Minor'.'Revision; 71 rc=lineout(OutFile, String||' '||FORMAT(Minor)); 72 rc=lineout(OutFile); 73 end 74 75 when (What="VERSIONREVISION") then do 76 parse var ProjVendor Major'.'Minor'.'Revision; 77 rc=lineout(OutFile, String||' '||FORMAT(Revision)); 66 78 rc=lineout(OutFile); 67 79 end
Note:
See TracChangeset
for help on using the changeset viewer.