Changeset 200 for trunk/tools
- Timestamp:
- Mar 27, 2019, 3:12:47 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/AddToFile.cmd
r190 r200 1 1 /** AddToFile.cmd 2 2 * Adds the specified line to the end of the specified file. 3 * Written by and Copyright (c) 2010-201 6David Azarewicz http://88watts.net3 * Written by and Copyright (c) 2010-2018 David Azarewicz http://88watts.net 4 4 * 5 * @#D Azarewicz:1.0 1#@##1## 16 Sep 2016 DAZAR1 ::::::@@AddToFile.cmd (c) David Azarewicz 20165 * @#D Azarewicz:1.02#@##1## 15 Nov 2018 DAZAR1 ::::::@@AddToFile.cmd (c) David Azarewicz 2018 6 6 * V1.01 16-Sep-2016 First official release 7 * V1.02 02-Jun-2017 Added Asd to bldlevel, added DATE1 7 8 * 8 9 * The following line is for the help sample code for the VAR function: … … 18 19 Say 'Functions:'; 19 20 Say ' DATEL - Adds the date as a long number.'; 20 Say ' BLDLEVEL - Adds a formatted BLDLEVEL string.'; 21 Say ' DATE1 - Adds the date in 2017-Jul-01 format.'; 22 Say ' BLDLEVEL - Adds a standardized formatted BLDLEVEL string.'; 21 23 Say ' DATEYEAR - Adds the current year.'; 22 24 Say ' DATEMONTH - Adds the current month.'; … … 33 35 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 34 36 call 'AddToFile.cmd' MyCmd; 37 MyCmd=MyFile||',#define DDATE,DATE1'; 38 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 39 call 'AddToFile.cmd' MyCmd; 35 40 MyCmd=MyFile||',option description,BLDLEVEL,Vendor,1.2.3,Description,Fixpack,Asd'; 36 41 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); … … 223 228 do while (QUEUED() > 0) 224 229 PARSE PULL Line1':'Line2 230 if (Line1 = "Revision") then leave; 225 231 if (Line1 = "Last Changed Rev") then leave; 226 232 Line2 = "";
Note:
See TracChangeset
for help on using the changeset viewer.