| 1 |
% |
| 2 |
% This is file `cdpbundl.ins'. |
| 3 |
% |
| 4 |
% This file is part of a work named "C.D.P. Bundle". |
| 5 |
% |
| 6 |
% Copyright (C) 1999-2018 by Gustavo MEZZETTI |
| 7 |
% <[email protected]>. |
| 8 |
% |
| 9 |
% The C.D.P. Bundle may be distributed and/or modified under the |
| 10 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 11 |
% of this license or (at your option) any later version. |
| 12 |
% The latest version of this license is in |
| 13 |
% http://www.latex-project.org/lppl.txt |
| 14 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 15 |
% version 2005/12/01 or later. |
| 16 |
% |
| 17 |
% The C.D.P. Bundle has the LPPL maintenance status |
| 18 |
% "author-maintained". |
| 19 |
% |
| 20 |
% The file `manifest.txt' that comes along with this file specifies |
| 21 |
% what the C.D.P. Bundle consists of; more precisely, it explains how |
| 22 |
% the locutions "Work" and "Compiled Work", used in the LaTeX Project |
| 23 |
% Public License, are to be interpreted in the case of this work. |
| 24 |
% |
| 25 |
% Note that the distribution of this file alone is "distribution of |
| 26 |
% only part of the Work" in the sense of the LaTeX Project Public |
| 27 |
% License, and should be avoided. |
| 28 |
% |
| 29 |
% February 8, 2018 (vers. 0.36d) |
| 30 |
% |
| 31 |
\input docstrip |
| 32 |
|
| 33 |
\def\filename{cdpbundl.dtx} |
| 34 |
|
| 35 |
\newif\ifWritingToDirectoryOfTDS |
| 36 |
\WritingToDirectoryOfTDSfalse |
| 37 |
|
| 38 |
\edef\WriteToDir{\WriteToDir} |
| 39 |
\def\TryToUseMyDir{% |
| 40 |
\usedir{tex/latex/cdpbundl} |
| 41 |
\ifx \destdir\WriteToDir \else |
| 42 |
\WritingToDirectoryOfTDStrue |
| 43 |
\fi |
| 44 |
} |
| 45 |
\def\Y{Y} |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
\Msg{----------------------------------------------------------------} |
| 50 |
\Msg{} |
| 51 |
\Msg{Unpacking the C.D.P. Bundle.} |
| 52 |
\Msg{} |
| 53 |
\Msg{The macro files contained in the C.D.P. Bundle are now standard,} |
| 54 |
\Msg{so it now makes sense to try to install the generated files into} |
| 55 |
\Msg{their own TeX directory, using the \string\usedir\space facility of DocStrip;} |
| 56 |
\Msg{if that fails, they will be just saved in the current directory.} |
| 57 |
\Msg{In this case, in order to finish the installation, you will have} |
| 58 |
\Msg{to move them into a directory where LaTeX can find them: see the} |
| 59 |
\Msg{documentation specific to your TeX implementation to learn where} |
| 60 |
\Msg{such directories are located on your system.} |
| 61 |
\Msg{} |
| 62 |
|
| 63 |
\catcode`\@ = 11 |
| 64 |
|
| 65 |
\ifx \usedir\alt@usedir |
| 66 |
|
| 67 |
\Msg{On your system, the name of the installation directory should be} |
| 68 |
\Msg{} |
| 69 |
\Msg{\space\space\space\space\showdirectory{tex/latex/cdpbundl}} |
| 70 |
\Msg{} |
| 71 |
\Msg{Please make sure that the above directory exists on your system,} |
| 72 |
\Msg{and that you have permission to create or overwrite files in it;} |
| 73 |
\Msg{if so, you may choose to put the generated files directly there.} |
| 74 |
\Msg{} |
| 75 |
\Msg{----------------------------------------------------------------} |
| 76 |
\Msg{} |
| 77 |
\Msg{Put files directly in suggested directory} |
| 78 |
\Msg{\space\space\space\space\showdirectory{tex/latex/cdpbundl}} |
| 79 |
\Ask\answer{or not? [y/n]} |
| 80 |
|
| 81 |
\ifx \answer\yes |
| 82 |
\TryToUseMyDir |
| 83 |
\else \ifx \answer\y |
| 84 |
\TryToUseMyDir |
| 85 |
\else \ifx \answer\Y |
| 86 |
\TryToUseMyDir |
| 87 |
\fi \fi \fi |
| 88 |
|
| 89 |
\else % of \ifx \usedir\alt@usedir |
| 90 |
|
| 91 |
\Msg{It seems that the configuration of your system does not allow us} |
| 92 |
\Msg{to use the \string\usedir\space facility: writing files to current directory.} |
| 93 |
|
| 94 |
\fi % of \ifx \usedir\alt@usedir |
| 95 |
|
| 96 |
\Msg{} |
| 97 |
|
| 98 |
\ifWritingToDirectoryOfTDS |
| 99 |
|
| 100 |
\Msg{Trying to install files directly in the proposed directory.} |
| 101 |
\Msg{} |
| 102 |
|
| 103 |
\else |
| 104 |
|
| 105 |
\Msg{Either you chose NOT to install files in the proposed directory,} |
| 106 |
\Msg{or, despite your choice, your system is not configured to permit} |
| 107 |
\Msg{you to do so. \space Therefore all files will be placed in the current} |
| 108 |
\Msg{directory and you will have to move them to a suitable directory} |
| 109 |
\Msg{by hand. \space At the end of this run, you will be presented with the} |
| 110 |
\Msg{complete list of the files you need to move.} |
| 111 |
\Msg{} |
| 112 |
\Ask\answer{Press \space <return> \space to continue |
| 113 |
(your \string\answer\space will be ignored).} |
| 114 |
|
| 115 |
\fi |
| 116 |
|
| 117 |
\preamble |
| 118 |
|
| 119 |
This is a generated file. |
| 120 |
It is part of a work named "C.D.P. Bundle". |
| 121 |
|
| 122 |
Copyright (C) 1999-2018 by Gustavo MEZZETTI |
| 123 |
<[email protected]>. |
| 124 |
|
| 125 |
The C.D.P. Bundle may be distributed and/or modified under the |
| 126 |
conditions of the LaTeX Project Public License, either version 1.3 |
| 127 |
of this license or (at your option) any later version. |
| 128 |
The latest version of this license is in |
| 129 |
http://www.latex-project.org/lppl.txt |
| 130 |
and version 1.3 or later is part of all distributions of LaTeX |
| 131 |
version 2005/12/01 or later. |
| 132 |
|
| 133 |
The C.D.P. Bundle has the LPPL maintenance status |
| 134 |
"author-maintained". |
| 135 |
|
| 136 |
The file `manifest.txt' that comes along with this file specifies |
| 137 |
what the C.D.P. Bundle consists of; more precisely, it explains how |
| 138 |
the locutions "Work" and "Compiled Work", used in the LaTeX Project |
| 139 |
Public License, are to be interpreted in the case of this work. |
| 140 |
|
| 141 |
Note that the distribution of this file alone is "distribution of |
| 142 |
only part of the Work" in the sense of the LaTeX Project Public |
| 143 |
License, and should be avoided. |
| 144 |
|
| 145 |
February 8, 2018 (vers. 0.36d) |
| 146 |
|
| 147 |
\endpreamble |
| 148 |
|
| 149 |
\askonceonly |
| 150 |
|
| 151 |
\generate{ |
| 152 |
\file{letteracdp.cls} {\from{\filename}{letter}} |
| 153 |
\file{articoletteracdp.cls}{\from{\filename}{artico}} |
| 154 |
\file{cdpaddon.sty} {\from{\filename}{addon}} |
| 155 |
\file{cdpbabel.sty} {\from{\filename}{babel}} |
| 156 |
\file{cdpshues-example.def}{\from{\filename}{example}} |
| 157 |
\file{epson-stylus-740.def}{\from{\filename}{epson}} |
| 158 |
\file{hp-laserjet-4500.def}{\from{\filename}{hplj}} |
| 159 |
\file{cdpshues.cfg} {\from{\filename}{config}} |
| 160 |
\file{cdpnamesenglish.ldf} {\from{\filename}{lang-en}} |
| 161 |
\file{cdpnamesitalian.ldf} {\from{\filename}{lang-it}} |
| 162 |
} |
| 163 |
|
| 164 |
\Msg{} |
| 165 |
|
| 166 |
\ifWritingToDirectoryOfTDS |
| 167 |
|
| 168 |
\Msg{Installation finished. \space Check that the proposed directory} |
| 169 |
\Msg{\space\space\space\space\showdirectory{tex/latex/cdpbundl}} |
| 170 |
\Msg{has been correctly updated.} |
| 171 |
|
| 172 |
\else |
| 173 |
|
| 174 |
\Msg{To finish the installation, please move the following files into} |
| 175 |
\Msg{a directory where LaTeX looks for inputs files:} |
| 176 |
\Msg{} |
| 177 |
\Msg{\space\space\space\space articoletteracdp.cls} |
| 178 |
\Msg{\space\space\space\space cdpaddon.sty} |
| 179 |
\Msg{\space\space\space\space cdpbabel.sty} |
| 180 |
\Msg{\space\space\space\space cdpnamesenglish.ldf} |
| 181 |
\Msg{\space\space\space\space cdpnamesitalian.ldf} |
| 182 |
\Msg{\space\space\space\space cdpshues-example.def} |
| 183 |
\Msg{\space\space\space\space cdpshues.cfg} |
| 184 |
\Msg{\space\space\space\space epson-stylus-740.def} |
| 185 |
\Msg{\space\space\space\space hp-laserjet-4500.def} |
| 186 |
\Msg{\space\space\space\space letteracdp.cls} |
| 187 |
|
| 188 |
\fi |
| 189 |
|
| 190 |
\Msg{} |
| 191 |
\Msg{Happy TeXing!} |
| 192 |
|
| 193 |
\endbatchfile |