2015-06-27 19:40:42 +00:00
|
|
|
@echo off
|
|
|
|
|
2016-10-06 21:42:16 +00:00
|
|
|
set DOX_CMD="C:\Program Files (x86)\Doc-O-Matic 7 Express\domexpress.exe"
|
|
|
|
if not exist %DOX_CMD% goto :dox_error
|
2015-06-27 19:40:42 +00:00
|
|
|
|
2016-10-06 21:42:16 +00:00
|
|
|
rem *** Prepare files ***
|
2015-06-27 19:40:42 +00:00
|
|
|
if not exist output mkdir output
|
|
|
|
pushd .
|
|
|
|
cd ..\..
|
2016-10-06 21:42:16 +00:00
|
|
|
|
|
|
|
if not exist fps.inc goto :next1
|
2015-06-27 19:40:42 +00:00
|
|
|
ren fps.inc ---fps.inc
|
2016-10-06 21:42:16 +00:00
|
|
|
|
|
|
|
:next1
|
|
|
|
if not exist fpspreadsheetctrls.lrs goto :next2
|
2015-06-27 19:40:42 +00:00
|
|
|
ren fpspreadsheetctrls.lrs ---fpspreadsheetctrls.lrs
|
2016-10-06 21:42:16 +00:00
|
|
|
|
|
|
|
:next2
|
2015-06-27 19:40:42 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
rem Extract help topics and create chm files...
|
2016-10-06 21:42:16 +00:00
|
|
|
echo Running %DOX_CMD% -config "HTML Help" fpspreadsheet.dox-express
|
2015-06-27 19:40:42 +00:00
|
|
|
%DOX_CMD% -config "HTML Help" fpspreadsheet.dox-express > doc-o-matic.txt
|
|
|
|
|
2016-10-06 21:42:16 +00:00
|
|
|
rem *** Clean up ***
|
2015-06-27 19:40:42 +00:00
|
|
|
pushd .
|
2016-10-06 21:42:16 +00:00
|
|
|
|
2015-06-27 19:40:42 +00:00
|
|
|
cd ..\..
|
|
|
|
chdir
|
2016-10-06 21:42:16 +00:00
|
|
|
if not exist ---fps.inc goto :next3
|
2015-06-27 19:40:42 +00:00
|
|
|
ren ---fps.inc fps.inc
|
2016-10-06 21:42:16 +00:00
|
|
|
|
|
|
|
:next3
|
|
|
|
if not exist ---fpspreadsheetctrls.lrs goto :next4
|
2015-06-27 19:40:42 +00:00
|
|
|
ren ---fpspreadsheetctrls.lrs fpspreadsheetctrls.lrs
|
2016-10-06 21:42:16 +00:00
|
|
|
|
|
|
|
:next4
|
2015-06-27 19:40:42 +00:00
|
|
|
popd
|
2016-10-06 21:42:16 +00:00
|
|
|
|
2015-06-27 19:40:42 +00:00
|
|
|
if exist output\fpspreadsheet.chm copy output\fpspreadsheet.chm ..\fpspreadsheet-api.chm /y
|
2016-10-06 21:42:16 +00:00
|
|
|
|
|
|
|
goto :end
|
|
|
|
|
|
|
|
:dox_error
|
|
|
|
echo Doc-O-Matic program not found. Check the script.
|
|
|
|
|
|
|
|
:end
|