@echo off
@del smghdeui.inc
@del harderr.txt
@extract harderr.pro
@qgrep "P:" harderr.txt >hdetemp
@qgrep "I:" harderr.txt >>hdetemp
@del harderr.txt
@sed -f hard.scr hdetemp >hdetemp1
@sed "/1468/d" hdetemp1 >hdetemp
@sed "/1469/d" hdetemp >hdetemp1
@echo ;Array of messages with no help message >hdetempa
@echo SDATA SEGMENT WORD PUBLIC 'DATA' USE16 >>hdetempa
@echo PromptErrs      Label WORD >>hdetempa
@sed "s/^/        DW      /" hdetemp1 >hdetemp
@copy hdetempa + hdetemp smghdeui.inc
@echo ErrCount        DW ^($ - PromptErrs^)^/2 >>smghdeui.inc
@echo SDATA           ends >>smghdeui.inc
@del hdetemp
@del hdetempa
@del hdetemp1
