mirror of https://github.com/wwarthen/RomWBW.git
committed by
GitHub
24 changed files with 188 additions and 64 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,4 @@ |
|||||
|
@echo off |
||||
|
setlocal |
||||
|
|
||||
|
pushd Doc && call Build || exit /b & popd |
||||
@ -0,0 +1,48 @@ |
|||||
|
@echo off |
||||
|
setlocal |
||||
|
|
||||
|
:: |
||||
|
:: NOTE: Pandoc and Latex (MiKTeX or TexLive) must be installed |
||||
|
:: and available on commandline for this build to work!!! |
||||
|
:: |
||||
|
|
||||
|
set TOOLS=..\..\Tools |
||||
|
set PATH=%TOOLS%\m4;%TOOLS%\gpp;%PATH% |
||||
|
|
||||
|
if not "%1"=="" (call :GenDoc %1 & goto :eof) |
||||
|
|
||||
|
call :GenDoc GettingStarted |
||||
|
:: call :GenDoc UserGuide |
||||
|
call :GenDoc Applications |
||||
|
:: call :GenDoc Errata |
||||
|
:: call :GenDoc ZSystem |
||||
|
call :GenDoc Architecture |
||||
|
call :GenDoc Catalog |
||||
|
call :GenDoc ROM_Applications |
||||
|
|
||||
|
if exist GettingStarted.pdf copy GettingStarted.pdf "..\..\Doc\RomWBW Getting Started.pdf" || exit /b |
||||
|
if exist GettingStarted.gfm copy GettingStarted.gfm ..\..\ReadMe.md || exit /b |
||||
|
if exist GettingStarted.txt copy GettingStarted.txt ..\..\ReadMe.txt || exit /b |
||||
|
if exist Applications.pdf copy Applications.pdf "..\..\Doc\RomWBW Applications.pdf" || exit /b |
||||
|
if exist Architecture.pdf copy Architecture.pdf "..\..\Doc\RomWBW Architecture.pdf" || exit /b |
||||
|
if exist Catalog.pdf copy Catalog.pdf "..\..\Doc\RomWBW Disk Catalog.pdf" || exit /b |
||||
|
if exist ROM_Applications.pdf copy ROM_Applications.pdf "..\..\Doc\ROM Applications.pdf" || exit /b |
||||
|
|
||||
|
echo. |
||||
|
goto :eof |
||||
|
|
||||
|
:GenDoc |
||||
|
|
||||
|
echo. |
||||
|
|
||||
|
echo Processing document %1.md... |
||||
|
|
||||
|
gpp -T <%1.md >%1.tmp |
||||
|
|
||||
|
pandoc %1.tmp -f markdown -t pdf -s -o %1.pdf --default-image-extension=pdf || exit /b |
||||
|
pandoc %1.tmp -f markdown -t html -o %1.html --default-image-extension=png || exit /b |
||||
|
pandoc %1.tmp -f markdown -t dokuwiki -o %1.dw --default-image-extension=png || exit /b |
||||
|
pandoc %1.tmp -f markdown -t gfm -o %1.gfm --default-image-extension=png || exit /b |
||||
|
pandoc %1.tmp -f markdown -t plain -o %1.txt --default-image-extension=png || exit /b |
||||
|
|
||||
|
goto :eof |
||||
@ -0,0 +1,10 @@ |
|||||
|
@echo off |
||||
|
setlocal |
||||
|
|
||||
|
if exist *.gfm del *.gfm |
||||
|
if exist *.txt del *.txt |
||||
|
if exist *.dw del *.dw |
||||
|
if exist *.html del *.html |
||||
|
if exist *.tex del *.tex |
||||
|
if exist *.pdf del *.pdf |
||||
|
if exist *.tmp del *.tmp |
||||
@ -0,0 +1,8 @@ |
|||||
|
\define{doc_ver}{3.1 Pre-release} |
||||
|
\define{doc_product}{RomWBW} |
||||
|
\define{doc_title}{Document Title} |
||||
|
\define{doc_author}{Wayne Warthen} |
||||
|
\define{doc_date}{\date{%d %b %Y}} |
||||
|
\define{doc_authmail}{wwarthen@@gmail.com} |
||||
|
\define{doc_orgname}{RetroBrew Computers Group} |
||||
|
\define{doc_orgurl}{www.retrobrewcomputers.org} |
||||
@ -1,7 +0,0 @@ |
|||||
!def(ver)(3.1 Pre-release) |
|
||||
!def(date)(!mdate) |
|
||||
!def(product)(RomWBW) |
|
||||
!def(author)(Wayne Warthen) |
|
||||
!def(authmail)(wwarthen@gmail.com) |
|
||||
!def(orgname)(RetroBrew Computers Group) |
|
||||
!def(orgurl)(www.retrobrewcomputers.org) |
|
||||
@ -0,0 +1,9 @@ |
|||||
|
changequote(`{{', `}}') |
||||
|
|
||||
|
define({{doc_ver}},{{3.1 Pre-release}}) |
||||
|
define({{doc_product}},{{RomWBW}}) |
||||
|
define({{doc_title}},{{Document Title}}) |
||||
|
define({{doc_author}},{{Wayne Warthen}}) |
||||
|
define({{doc_authmail}},{{wwarthen@gmail.com}}) |
||||
|
define({{doc_orgname}},{{RetroBrew Computers Group}}) |
||||
|
define({{doc_orgurl}},{{www.retrobrewcomputers.org}}) |
||||
@ -0,0 +1,40 @@ |
|||||
|
#
|
||||
|
# NOTE: Pandoc, Latex (MiKTeX or TexLive), and gpp must be installed
|
||||
|
# and available on commandline for this build to work!!!
|
||||
|
# Typically "sudo apt install pandoc, texlive-latex-extra, gpp"
|
||||
|
#
|
||||
|
OBJECTS = GettingStarted.pdf GettingStarted.gfm GettingStarted.txt Applications.pdf Architecture.pdf Catalog.pdf ROM_Applications.pdf |
||||
|
# DEST = ../../Doc
|
||||
|
TOOLS = ../../Tools |
||||
|
OTHERS = *.tmp |
||||
|
|
||||
|
include $(TOOLS)/Makefile.inc |
||||
|
|
||||
|
all :: deploy |
||||
|
|
||||
|
%.tmp : %.md |
||||
|
gpp -T $< >$@ |
||||
|
|
||||
|
%.pdf : %.tmp |
||||
|
pandoc $< -f markdown -t latex -s -o $@ --default-image-extension=pdf |
||||
|
|
||||
|
%.html : %.tmp |
||||
|
pandoc $< -f markdown -t html -s -o $@ --default-image-extension=pdf |
||||
|
|
||||
|
%.dw : %.tmp |
||||
|
pandoc $< -f markdown -t dokuwiki -s -o $@ --default-image-extension=pdf |
||||
|
|
||||
|
%.gfm : %.tmp |
||||
|
pandoc $< -f markdown -t gfm -s -o $@ --default-image-extension=pdf |
||||
|
|
||||
|
%.txt : %.tmp |
||||
|
pandoc $< -f markdown -t plain -s -o $@ --default-image-extension=pdf |
||||
|
|
||||
|
deploy : |
||||
|
cp GettingStarted.pdf "../../Doc/RomWBW Getting Started.pdf" |
||||
|
cp GettingStarted.gfm "../../ReadMe.md" |
||||
|
cp GettingStarted.txt "../../ReadMe.txt" |
||||
|
cp Applications.pdf "../../Doc/RomWBW Applications.pdf" |
||||
|
cp Architecture.pdf "../../Doc/RomWBW Architecture.pdf" |
||||
|
cp Catalog.pdf "../../Doc/RomWBW Disk Catalog.pdf" |
||||
|
cp ROM_Applications.pdf "../../Doc/ROM Applications.pdf" |
||||
Binary file not shown.
Loading…
Reference in new issue