chiark / gitweb /
Release 1.8.2.
[mdwtools] / mdwtools.ins
1 %
2 % $Id: mdwtools.ins,v 1.3 2003/09/05 16:16:31 mdw Exp $
3 %
4 % Installer for the mdwtools packages
5 %
6 % (c) 1996 Mark Wooding
7 %
8
9 % --- Licence note ---
10 %
11 % mdwtools installer
12 % Copyright (c) 1996 Mark Wooding
13 %
14 % This program is free software; you can redistribute it and/or modify
15 % it under the terms of the GNU General Public License as published by
16 % the Free Software Foundation; either version 2 of the License, or
17 % (at your option) any later version.
18 %
19 % This program is distributed in the hope that it will be useful,
20 % but WITHOUT ANY WARRANTY; without even the implied warranty of
21 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 % GNU General Public License for more details.
23 %
24 % You should have received a copy of the GNU General Public License
25 % along with this program; if not, write to the Free Software
26 % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27
28 % --- Sort out how to do all this ---
29
30 \def\batchfile{mdwtools.ins}
31 \input docstrip
32 \keepsilent
33
34 \preamble
35
36 IMPORTANT NOTICE
37 \endpreamble
38
39 { % --- This is a group so that docstrip \reads it all in one go ---
40
41   \ifx\generate\mdwxxnotdef
42     \gdef\mdwgen#1{#1}
43     \gdef\mdwf#1#2{\generateFile{#1}{n}{#2}}
44     \gdef\needed#1{}
45   \else
46     \global\let\mdwgen\generate
47     \global\def\mdwf{\file}
48     \global\askforoverwritefalse
49   \fi
50
51 }
52
53 \mdwgen{\mdwf {at.sty}          {\from {at.dtx}       {package}}
54         \mdwf {mdwlist.sty}     {\from {mdwlist.dtx}  {package}}
55         \mdwf {mdwtab.sty}      {\from {mdwtab.dtx}   {mdwtab}
56                                  \needed{syntax.dtx}
57                                  \from {footnote.dtx} {macro}
58                                  \from {doafter.dtx}  {macro}}
59         \mdwf {mdwkey.sty}      {\from {mdwkey.dtx}   {package}}
60         \mdwf {mdwkey.tex}      {\from {mdwkey.dtx}   {package,plain}}
61         \mdwf {syntax.sty}      {\from {syntax.dtx}   {package}
62                                  \from {doafter.dtx}  {macro}}
63         \mdwf {mtcolor.sty}     {\from {mdwtab.dtx}   {color}}
64         \mdwf {mtcolour.sty}    {\from {mdwtab.dtx}   {colour}}
65         \mdwf {colour.sty}      {\from {colour.dtx}   {package}}
66         \mdwf {centre.sty}      {\from {centre.dtx}   {package}}
67         \mdwf {mathenv.sty}     {\from {mdwtab.dtx}   {mathenv}}
68         \mdwf {mdwmath.sty}     {\from {mdwmath.dtx}  {package}}
69         \mdwf {sverb.sty}       {\from {sverb.dtx}    {package}}
70         \mdwf {svcolor.sty}     {\from {sverb.dtx}    {color}}
71         \mdwf {svcolour.sty}    {\from {sverb.dtx}    {colour}}
72         \mdwf {svsplit.sty}     {\from {sverb.dtx}    {split}}
73         \mdwf {footnote.sty}    {\from {footnote.dtx} {package}}
74         \mdwf {doafter.sty}     {\from {doafter.dtx}  {package,latex2e}}
75         \mdwf {doafter.tex}     {\from {doafter.dtx}  {package,plain}}
76         \mdwf {cmtt.sty}        {\from {cmtt.dtx}     {sty}}
77         \mdwf {mttenc.def}      {\from {cmtt.dtx}     {def}}
78         \mdwf {mttcmtt.fd}      {\from {cmtt.dtx}     {fd}}
79         \mdwf {crypto.sty}      {\from {crypto.dtx}   {package}}
80         \mdwf {mdwthm.sty}      {\from {mdwthm.dtx}   {package}}
81         \mdwf {exercise.sty}    {\from {exercise.dtx} {package}}
82         \mdwf {slowbox.sty}     {\from {slowbox.dtx}  {package}}
83         \mdwf {mdwmargin.thm}   {\from {mdwthm.dtx}   {thmstyle}}
84         \mdwf {mdwref.sty}      {\from {mdwref.dtx}   {package}}
85         \mdwf {poetry.sty}      {\from {poetry.dtx}   {package}}
86 }
87
88 \Msg{Done!}