DATASORT l
========
skelfile '\DateSort_Skel.htm' /* Has HTML/CSS sections to insert */
infile '\WakeBOE_TOC.htm' /* Always the input file */
outfile_default '\DateSort.htm' /* Default output file (may be overridden) */
Process arguments and defaults
Invoke 'MACRO DATESORT_MATCH'
outfile
LOcate >h2> line. <==== Check for missing
Loop thru the rest of infile (WakeBOE_TOC.htm) and combine paired
timelines and address lines.
Check for errors <==== Check for split -
<==== Check for unpaired timestamp
<==== Check for missing/misplaced tag
Insert combined line (yy/mm/dd date) into outfile
Sort by last-changed date then by fileid
Remove all but first in duplicate fileid set of lines
Sort by last-changed dated
Save first-class and first-date from line 1
Check for errors <==== Check if "updatednld" not in first line
<==== Check if "done on" cannot be found
<==== Check "done on" vs latest change
Loop thru outfile
Check each line <==== Check date/class mismatch
Insert gap lines ans separation line
Check if nothing is before separation line <=== Check if output file is empty
Convert dates back to mm/dd/yy
Insert boilerplate HTML/CSS
Invoke 'MACRO FILEJGK FILE QUIET'
QUIT infile
Invoke 'MACRO DATESORT_DELTA'
exit
DATESORT_MATCH
==============
infile '\WakeBOE_TOC.htm' /* List (TOC) of BOE-related files */
D_workfile '\DateSort_D_work.txt' /* Workfile for "D"irectory files */
T_workfile '\DateSort_T_work.txt' /* Workfile for "T"OC files */
D_result '\DateSort_D_result.txt' /* Unmatched "D"irectory files */
T_result '\DateSort_T_result.txt' /* Unmatched "T"OC files */
outfile '\DateSort_Match.htm' /* Report generated by this macro */
skelfile '\DateSort_Match_Skel.htm' /* HTML/CSS code for this report */
dirfile '\DateSort_DIR.txt' /* Filtered WakeBOE directory files */
dupesfile '\DateSort_Dupes.txt' /* Dupes found in WakeBOE_TOC.htm */
DIR_catch '\DateSort_DIR_Catch.txt' /* Catches filtered WakeBOE DIR */
TOC_catch '\DateSort_TOC_Catch.txt' /* Catches filtered "WakeBOE_TOC" */
D_workfile
Initially contains output of DIR for WakeBOE directory <===== check DIR file not empty
Filter out DIR headings, most .png/.jpg, DateSort, Comments, etc.
(Optionally copy fileids from unfiltered DIR lines into DIR_catch; sort from col 1)
Reformat filtered lines to "D yy/mm/dd fileid" and REPLACE in D_workfile
Gets all of DIR output (except filtered lines)
dirfile
Gets a copy of D_workfile (full, filtered, reformatted DIR lines)
"D yy/mm/dd fileid"
Sort by date
FILE for later use in DATEMATCH_MATCH display section 5
infile ("WakeBOE_TOC")
Check all "
descwork file) for later use
Mark pairs fof matching lines with "MATCHED"
delta_file
Output display sections
Intro
1) Unmatched files in the list of "Changed Files"
2) Unmatched files in the list of "Recent Changes"
3) A list of any files which were changed on multiple dates
(from date-sorted dsc_sort array)
(delete non-duplicates)
(insert a line gap between sets of duplicates)
Insert HTML/CSS boilerplate
Do final edits
If used, test file vs standard "Changed Files"
Insert separation line date in text
Change button color and problems count in button
Invoke 'MACRO FILEJGK FILE QUIET'
Invoke 'WINEXEC NOWAIT "C:\Program Files\Mozilla Firefox\firefox.exe"' delta_file
exit