[latex3-commits] [git/l3build] sourcedir: add "Bundle Tree" example -- it works! (7eed74f)
Will Robertson
will at wspr.io
Mon Dec 11 13:15:54 CET 2017
Repository : https://github.com/latex3/l3build
On branch : sourcedir
Link : https://github.com/latex3/l3build/commit/7eed74f58a3328c0002313b24cd516f62eb2a639
>---------------------------------------------------------------
commit 7eed74f58a3328c0002313b24cd516f62eb2a639
Author: Will Robertson <will at wspr.io>
Date: Mon Dec 11 22:41:09 2017 +1030
add "Bundle Tree" example -- it works!
>---------------------------------------------------------------
7eed74f58a3328c0002313b24cd516f62eb2a639
examples/Bundle-Tree/Module-One/build.lua | 13 +++++
.../Bundle-Tree/Module-One/code/module-one.dtx | 50 ++++++++++++++++++++
.../Bundle-Tree/Module-One/code/module-one.ins | 6 +++
.../Bundle-Tree/Module-One/doc/module-one-doc.tex | 13 +++++
examples/Bundle-Tree/Module-Two/build.lua | 13 +++++
.../Bundle-Tree/Module-Two/code/module-two.dtx | 50 ++++++++++++++++++++
.../Bundle-Tree/Module-Two/code/module-two.ins | 6 +++
examples/Bundle-Tree/Module-Two/doc/module-two.tex | 13 +++++
examples/Bundle-Tree/build.lua | 8 ++++
9 files changed, 172 insertions(+)
diff --git a/examples/Bundle-Tree/Module-One/build.lua b/examples/Bundle-Tree/Module-One/build.lua
new file mode 100755
index 0000000..308e1a6
--- /dev/null
+++ b/examples/Bundle-Tree/Module-One/build.lua
@@ -0,0 +1,13 @@
+#!/usr/bin/env texlua
+
+bundle = "bundle-tree"
+module = "module-one"
+maindir = ".."
+
+sourcefiledir = "code"
+docfiledir = "doc"
+typesetfiles = {"*.dtx","*.tex"}
+packtdszip = true -- recommended for "tree" layouts
+
+kpse.set_program_name("kpsewhich")
+dofile(kpse.lookup("l3build.lua"))
diff --git a/examples/Bundle-Tree/Module-One/code/module-one.dtx b/examples/Bundle-Tree/Module-One/code/module-one.dtx
new file mode 100644
index 0000000..4cb5be4
--- /dev/null
+++ b/examples/Bundle-Tree/Module-One/code/module-one.dtx
@@ -0,0 +1,50 @@
+% \iffalse
+%
+%<*driver>
+\ProvidesFile{module-one.dtx}
+%</driver>
+%<pkg>\ProvidesPackage{module-one}
+%<*pkg>
+ [2017/12/10 v0.1 Module One example]
+%</pkg>
+%
+%<*driver>
+\documentclass{ltxdoc}
+\EnableCrossrefs
+\CodelineIndex
+\begin{document}
+ \DocInput{\jobname.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \GetFileInfo{module-one.dtx}
+% \title{The \textsf{module-one} example}
+% \date{\filedate\qquad\fileversion}
+% \maketitle
+% \begin{abstract}
+% This is the implementation of the module-one example.
+% \end{abstract}
+%
+% \tableofcontents
+%
+% \section{Introduction}
+%
+% In the module-one example, code is located in code/ and documentation is located in doc/.
+%
+% \section{Implementation}
+%
+% \begin{macrocode}
+%<*pkg>
+% \end{macrocode}
+%
+% \begin{macrocode}
+\typeout{Actually this isn't a real package!}
+% \end{macrocode}
+%
+% \begin{macrocode}
+%</pkg>
+% \end{macrocode}
+%
+% \Finale
+%
diff --git a/examples/Bundle-Tree/Module-One/code/module-one.ins b/examples/Bundle-Tree/Module-One/code/module-one.ins
new file mode 100644
index 0000000..9255566
--- /dev/null
+++ b/examples/Bundle-Tree/Module-One/code/module-one.ins
@@ -0,0 +1,6 @@
+
+\input docstrip.tex
+\keepsilent
+\askforoverwritefalse
+\generate{\file{\jobname.sty}{\from{\jobname.dtx}{pkg}}}
+\endbatchfile
diff --git a/examples/Bundle-Tree/Module-One/doc/module-one-doc.tex b/examples/Bundle-Tree/Module-One/doc/module-one-doc.tex
new file mode 100644
index 0000000..2ede24f
--- /dev/null
+++ b/examples/Bundle-Tree/Module-One/doc/module-one-doc.tex
@@ -0,0 +1,13 @@
+\documentclass{article}
+
+\begin{document}
+
+\title{Documentation for bundle tree / module one}
+\maketitle
+
+\section{Introduction}
+
+There's not much more to say right here.
+This is where the user documentation for the example goes.
+
+\end{document}
diff --git a/examples/Bundle-Tree/Module-Two/build.lua b/examples/Bundle-Tree/Module-Two/build.lua
new file mode 100755
index 0000000..04f5889
--- /dev/null
+++ b/examples/Bundle-Tree/Module-Two/build.lua
@@ -0,0 +1,13 @@
+#!/usr/bin/env texlua
+
+bundle = "bundle-tree"
+module = "module-two"
+maindir = ".."
+
+sourcefiledir = "code"
+docfiledir = "doc"
+typesetfiles = {"*.dtx","*.tex"}
+packtdszip = true -- recommended for "tree" layouts
+
+kpse.set_program_name("kpsewhich")
+dofile(kpse.lookup("l3build.lua"))
diff --git a/examples/Bundle-Tree/Module-Two/code/module-two.dtx b/examples/Bundle-Tree/Module-Two/code/module-two.dtx
new file mode 100644
index 0000000..5075d45
--- /dev/null
+++ b/examples/Bundle-Tree/Module-Two/code/module-two.dtx
@@ -0,0 +1,50 @@
+% \iffalse
+%
+%<*driver>
+\ProvidesFile{module-two.dtx}
+%</driver>
+%<pkg>\ProvidesPackage{module-two}
+%<*pkg>
+ [2017/12/10 v0.1 Module two example]
+%</pkg>
+%
+%<*driver>
+\documentclass{ltxdoc}
+\EnableCrossrefs
+\CodelineIndex
+\begin{document}
+ \DocInput{\jobname.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \GetFileInfo{module-two.dtx}
+% \title{The \textsf{module-two} example}
+% \date{\filedate\qquad\fileversion}
+% \maketitle
+% \begin{abstract}
+% This is the implementation of the module-two example.
+% \end{abstract}
+%
+% \tableofcontents
+%
+% \section{Introduction}
+%
+% In the module-two example, code is located in code/ and documentation is located in doc/.
+%
+% \section{Implementation}
+%
+% \begin{macrocode}
+%<*pkg>
+% \end{macrocode}
+%
+% \begin{macrocode}
+\typeout{Actually this isn't a real package!}
+% \end{macrocode}
+%
+% \begin{macrocode}
+%</pkg>
+% \end{macrocode}
+%
+% \Finale
+%
diff --git a/examples/Bundle-Tree/Module-Two/code/module-two.ins b/examples/Bundle-Tree/Module-Two/code/module-two.ins
new file mode 100644
index 0000000..9255566
--- /dev/null
+++ b/examples/Bundle-Tree/Module-Two/code/module-two.ins
@@ -0,0 +1,6 @@
+
+\input docstrip.tex
+\keepsilent
+\askforoverwritefalse
+\generate{\file{\jobname.sty}{\from{\jobname.dtx}{pkg}}}
+\endbatchfile
diff --git a/examples/Bundle-Tree/Module-Two/doc/module-two.tex b/examples/Bundle-Tree/Module-Two/doc/module-two.tex
new file mode 100644
index 0000000..c1e4467
--- /dev/null
+++ b/examples/Bundle-Tree/Module-Two/doc/module-two.tex
@@ -0,0 +1,13 @@
+\documentclass{article}
+
+\begin{document}
+
+\title{Documentation for bundle tree / module two}
+\maketitle
+
+\section{Introduction}
+
+There's not much more to say right here.
+This is where the user documentation for the example goes.
+
+\end{document}
diff --git a/examples/Bundle-Tree/build.lua b/examples/Bundle-Tree/build.lua
new file mode 100755
index 0000000..03f5517
--- /dev/null
+++ b/examples/Bundle-Tree/build.lua
@@ -0,0 +1,8 @@
+#!/usr/bin/env texlua
+
+bundle = "bundle-tree"
+
+packtdszip = true
+
+kpse.set_program_name("kpsewhich")
+dofile(kpse.lookup("l3build.lua"))
More information about the latex3-commits
mailing list