%% regulatory.ins
%% Copyright 2024-2026 E. Nijenhuis
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status 'maintained'.
%
% The Current Maintainer of this work is E. Nijenhuis.
%
% This work consists of the files listed in the meta-comment of
% regulatory-struct.dtx.
%
\input docstrip.tex
\keepsilent

% The generated files are written next to this one, and the Makefile of the
% project moves them into its tex directory afterwards.
%
% They used to be written straight there, with \BaseDirectory{..} and
% \usedir{tex}. That cannot work outside this project: openout_any is `p' in a
% stock TeX Live, and paranoid refuses a path that leads out of the current
% directory. Measured -- the run stops on
%
%     Not writing to ../tex/regulatory.sty (openout_any = p)
%
% which is what the build on CI did, and what anyone unpacking the release and
% running this file would have got. Writing beside the source is the one place
% docstrip may always write.
\askforoverwritefalse

\preamble

This is a generated file.

Copyright 2024-2026 E. Nijenhuis

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3c
of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3c or later is part of all distributions of LaTeX
version 2005/12/01 or later.

This work has the LPPL maintenance status 'maintained'.

The Current Maintainer of this work is E. Nijenhuis.

\endpreamble

\generate{%
    \file{regulatory.sty}{\from{regulatory-struct.dtx}{wrapper}}%
    \file{regulatory-struct.sty}{\from{regulatory-struct.dtx}{package}}%
    \file{regulatory-defs.sty}{\from{regulatory-defs.dtx}{package}}%
    \file{regulatory-ref.sty}{\from{regulatory-ref.dtx}{package}}%
    \file{regulatory-attachments.sty}{\from{regulatory-attachments.dtx}{package}}%
    \file{regulatory-md.sty}{\from{regulatory-md.dtx}{package}}%
    \file{regulatory-sign.sty}{\from{regulatory-sign.dtx}{package}}%
    \file{regulatory-sources.sty}{\from{regulatory-sources.dtx}{package}}%
    \file{regulatory.4ht}{\from{regulatory-html.dtx}{html}}%
}

\obeyspaces
\Msg{*************************************************************}
\Msg{*                                                           *}
\Msg{* To finish the installation you have to move the generated *}
\Msg{* files into a directory searched by TeX:                   *}
\Msg{*                                                           *}
\Msg{*     regulatory.sty                                        *}
\Msg{*     regulatory-struct.sty                                 *}
\Msg{*     regulatory-defs.sty                                   *}
\Msg{*     regulatory-ref.sty                                    *}
\Msg{*     regulatory-attachments.sty                            *}
\Msg{*     regulatory-md.sty                                     *}
\Msg{*     regulatory-sign.sty                                   *}
\Msg{*     regulatory-sources.sty                                *}
\Msg{*                                                           *}
\Msg{*     regulatory.4ht                                       *}
\Msg{*                                                           *}
\Msg{* The language definition files regulatory-english.def,     *}
\Msg{* regulatory-dutch.def, regulatory-german.def and           *}
\Msg{* regulatory-french.def are sources of their own, and so is  *}
\Msg{* the Markdown syntax extension regulatory-syntax.lua. All   *}
\Msg{* five belong in that same directory.                        *}
\Msg{*                                                           *}
\Msg{* To produce the documentation, run make build-docs, or     *}
\Msg{* compile doc/regulatory-en.tex and doc/regulatory-nl.tex   *}
\Msg{* with LuaLaTeX.                                            *}
\Msg{*                                                           *}
\Msg{* Happy TeXing!                                             *}
\Msg{*                                                           *}
\Msg{*************************************************************}

\endbatchfile
