/*
 * $Id: readme.txt 11829 2009-07-16 21:28:55Z vszakats $
 */

Converted from an MS-DOS batch file for reference.
(the script and hbdoc has various problems, and it doesn't
currently work)

@echo off
rem
rem $Id: readme.txt 11829 2009-07-16 21:28:55Z vszakats $
rem

if "%1" =="/OS2" goto OS2
if "%1" =="/os2" goto OS2
if "%1" =="/NGI" goto NG
if "%1" =="/ngi" goto NG
if "%1" =="/RTF" goto RTF
if "%1" =="/rtf" goto RTF
if "%1" =="/HTM" goto HTM
if "%1" =="/htm" goto HTM
ECHO Assembling input files
:help
    echo.
    echo Usage gendoc type
    echo where type is:
    echo /rtf for Winhelp output
    echo /os2 for Os/2 help output
    echo /ngi for Norton Guide output
    echo /htm for HTML output
    goto END

ECHO Assembling input files
:NG
hbdoc /ngi hbmisc.lnk hbmisc.rsp
REM Compile the sources
Echo Compiling the sources
Echo Processing Input Files
Copy ngi\funcam.txt+ngi\funcn_.txt overview.ngi
Echo Compiling Sources
ngxc overview.ngi
Echo Linking the Guide
ngxl hbmisc.lnk
del *.ngi
del *.ngo
del ngi\*.txt
del ngi\*.ngi
del hbmisc.lnk
ren hbmisc.old hbmisc.lnk

GOTO END
:OS2
   hbdoc /OS2 hbmisc.lnk hbmisc.rsp
GOTO END
:RTF
   hbdoc /RTF hbmisc.lnk hbmisc.rsp
   hcw harbour.hpj
del hbmisc.lnk
ren hbmisc.old hbmisc.lnk

GOTO END
:HTM
    hbdoc /HTM hbmisc.lnk hbmisc.rsp
   GOTO END
:END
del ass*.bat
