diff --git a/en/handbook/Makefile b/en/handbook/Makefile new file mode 100644 index 0000000000..d022580a39 --- /dev/null +++ b/en/handbook/Makefile @@ -0,0 +1,77 @@ +# Makefile to build the Handbook from DocBook source. +# +# Requires these ports from textproc +# +# docbook +# dsssl-docbook-modular +# html +# jade +# +# and probably one or two others. +# +# THIS IS A QUICK HACK (!) so that others can get an idea of how the +# Handbook will look after conversion. After typing "make", point your +# browser at book01.htm and read on. This is still very much a work in +# progress, and the final formatting will be considerably different. +# +# Eventually I expect most of this will be folded back into bsd.sgml.mk. +# +# Any comments or suggestions about the conversion process should be sent +# to nik@FreeBSD.ORG +# + +DOCS= handbook.sgml + +# ------------------------------------------------------------------------ +# +# Transformation rules +# + +# file.sgml --> file.html +# +# Examines file.sgml to determine the DTD in use. The DTD determines how +# the file will be converted to HTML. + +.SUFFIXES: .sgml .html +SGMLNORM?= /usr/local/bin/sgmlnorm +HTMLCATALOG?= /usr/local/share/sgml/html/catalog +SGMLNORMFLAGS= -d -n -c ${HTMLCATALOG} + +JADE?= /usr/local/bin/jade +DSL?= /usr/local/share/sgml/docbook/dsssl/modular/html/docbook.dsl +DOCBOOKCATALOG?=/usr/local/share/sgml/docbook/3.0/catalog +JADECATALOG?= /usr/local/share/sgml/jade/catalog +JADEFLAGS?= -c ${DOCBOOKCATALOG} -c ${JADECATALOG} -d ${DSL} -t sgml + +.sgml.html: + @DTD=`head -n 1 ${.IMPSRC} | perl -ne '/DTD (\w+)/; print $$1;'`; \ + echo "${.IMPSRC} ($$DTD) --> ${.TARGET}"; \ + case $$DTD in \ + HTML) \ + ${SGMLNORM} ${SGMLNORMFLAGS} \ + ${.IMPSRC} > ${.TARGET}; \ + ;; \ + DocBook) \ + ${JADE} ${JADEFLAGS} ${.IMPSRC}; \ + mv ARTICLE-0001.html ${.TARGET}; \ + ;; \ + *) \ + echo "Don't know how to process $$DTD." \ + ;; \ + esac + +# ${SGMLNORM} ${SGMLNORMFLAGS} ${.IMPSRC} > ${.TARGET} + +# ------------------------------------------------------------------------ +# +# Targets +# + +# If no target is specifed then .MAIN is made +.MAIN: all + +# +# Build everything. Never completes, because handbook.html is never built +# +all: handbook.html + diff --git a/en_US.ISO8859-1/books/handbook/Makefile b/en_US.ISO8859-1/books/handbook/Makefile new file mode 100644 index 0000000000..d022580a39 --- /dev/null +++ b/en_US.ISO8859-1/books/handbook/Makefile @@ -0,0 +1,77 @@ +# Makefile to build the Handbook from DocBook source. +# +# Requires these ports from textproc +# +# docbook +# dsssl-docbook-modular +# html +# jade +# +# and probably one or two others. +# +# THIS IS A QUICK HACK (!) so that others can get an idea of how the +# Handbook will look after conversion. After typing "make", point your +# browser at book01.htm and read on. This is still very much a work in +# progress, and the final formatting will be considerably different. +# +# Eventually I expect most of this will be folded back into bsd.sgml.mk. +# +# Any comments or suggestions about the conversion process should be sent +# to nik@FreeBSD.ORG +# + +DOCS= handbook.sgml + +# ------------------------------------------------------------------------ +# +# Transformation rules +# + +# file.sgml --> file.html +# +# Examines file.sgml to determine the DTD in use. The DTD determines how +# the file will be converted to HTML. + +.SUFFIXES: .sgml .html +SGMLNORM?= /usr/local/bin/sgmlnorm +HTMLCATALOG?= /usr/local/share/sgml/html/catalog +SGMLNORMFLAGS= -d -n -c ${HTMLCATALOG} + +JADE?= /usr/local/bin/jade +DSL?= /usr/local/share/sgml/docbook/dsssl/modular/html/docbook.dsl +DOCBOOKCATALOG?=/usr/local/share/sgml/docbook/3.0/catalog +JADECATALOG?= /usr/local/share/sgml/jade/catalog +JADEFLAGS?= -c ${DOCBOOKCATALOG} -c ${JADECATALOG} -d ${DSL} -t sgml + +.sgml.html: + @DTD=`head -n 1 ${.IMPSRC} | perl -ne '/DTD (\w+)/; print $$1;'`; \ + echo "${.IMPSRC} ($$DTD) --> ${.TARGET}"; \ + case $$DTD in \ + HTML) \ + ${SGMLNORM} ${SGMLNORMFLAGS} \ + ${.IMPSRC} > ${.TARGET}; \ + ;; \ + DocBook) \ + ${JADE} ${JADEFLAGS} ${.IMPSRC}; \ + mv ARTICLE-0001.html ${.TARGET}; \ + ;; \ + *) \ + echo "Don't know how to process $$DTD." \ + ;; \ + esac + +# ${SGMLNORM} ${SGMLNORMFLAGS} ${.IMPSRC} > ${.TARGET} + +# ------------------------------------------------------------------------ +# +# Targets +# + +# If no target is specifed then .MAIN is made +.MAIN: all + +# +# Build everything. Never completes, because handbook.html is never built +# +all: handbook.html + diff --git a/en_US.ISO_8859-1/books/handbook/Makefile b/en_US.ISO_8859-1/books/handbook/Makefile new file mode 100644 index 0000000000..d022580a39 --- /dev/null +++ b/en_US.ISO_8859-1/books/handbook/Makefile @@ -0,0 +1,77 @@ +# Makefile to build the Handbook from DocBook source. +# +# Requires these ports from textproc +# +# docbook +# dsssl-docbook-modular +# html +# jade +# +# and probably one or two others. +# +# THIS IS A QUICK HACK (!) so that others can get an idea of how the +# Handbook will look after conversion. After typing "make", point your +# browser at book01.htm and read on. This is still very much a work in +# progress, and the final formatting will be considerably different. +# +# Eventually I expect most of this will be folded back into bsd.sgml.mk. +# +# Any comments or suggestions about the conversion process should be sent +# to nik@FreeBSD.ORG +# + +DOCS= handbook.sgml + +# ------------------------------------------------------------------------ +# +# Transformation rules +# + +# file.sgml --> file.html +# +# Examines file.sgml to determine the DTD in use. The DTD determines how +# the file will be converted to HTML. + +.SUFFIXES: .sgml .html +SGMLNORM?= /usr/local/bin/sgmlnorm +HTMLCATALOG?= /usr/local/share/sgml/html/catalog +SGMLNORMFLAGS= -d -n -c ${HTMLCATALOG} + +JADE?= /usr/local/bin/jade +DSL?= /usr/local/share/sgml/docbook/dsssl/modular/html/docbook.dsl +DOCBOOKCATALOG?=/usr/local/share/sgml/docbook/3.0/catalog +JADECATALOG?= /usr/local/share/sgml/jade/catalog +JADEFLAGS?= -c ${DOCBOOKCATALOG} -c ${JADECATALOG} -d ${DSL} -t sgml + +.sgml.html: + @DTD=`head -n 1 ${.IMPSRC} | perl -ne '/DTD (\w+)/; print $$1;'`; \ + echo "${.IMPSRC} ($$DTD) --> ${.TARGET}"; \ + case $$DTD in \ + HTML) \ + ${SGMLNORM} ${SGMLNORMFLAGS} \ + ${.IMPSRC} > ${.TARGET}; \ + ;; \ + DocBook) \ + ${JADE} ${JADEFLAGS} ${.IMPSRC}; \ + mv ARTICLE-0001.html ${.TARGET}; \ + ;; \ + *) \ + echo "Don't know how to process $$DTD." \ + ;; \ + esac + +# ${SGMLNORM} ${SGMLNORMFLAGS} ${.IMPSRC} > ${.TARGET} + +# ------------------------------------------------------------------------ +# +# Targets +# + +# If no target is specifed then .MAIN is made +.MAIN: all + +# +# Build everything. Never completes, because handbook.html is never built +# +all: handbook.html +