summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/calendar/allcal.ins
blob: df226cb5c4ef4e647fbd68306582b40f8c8b42ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
%\iffalse
% allcal.ins,v
% Revision 3.1  1998/01/17 16:55:22  root
% Release code
%
% Revision 2.10  1998/01/16 21:12:52  root
% *** empty log message ***
%
% Revision 2.9  1998/01/16 21:08:40  root
% *** empty log message ***
%
% Revision 2.8  1998/01/16 19:22:55  root
% *** empty log message ***
%
% Revision 2.7  1997/12/06 21:13:24  root
% Changed filoaddr.sty to filoaddr.cls
%
% Revision 2.6  1997/12/06 08:53:32  root
% Log offset fixed.
%
%Revision 2.5  1997/12/06 08:50:25  root
%Fixed missing log entry.
%
% allcal.ins,v
% Revision 2.1.1.1  1997/11/01 15:36:56  bennett
% *** empty log message ***
%
% Revision 2.1  1997/11/01 14:40:45  root
% Release code.
%
% Revision 1.4  1997/10/30 20:13:44  root
% Added \IfFileExists conditionals that paternalistically attempt
% to determine whether it's worth calling the existence of the
% Tcl/Emacs facilities to the attention of the user.
%
% Revision 1.3  1997/10/30 06:13:56  root
% Eliminated extract-all-installation-files option.
%
% Revision 1.2  1997/10/29 08:40:33  root
% Simple test of RCS.
%
% Revision 1.1  1997/10/29 08:17:52  root
% Initial revision
%\fi
%
\def\batchfile{allcal.ins}
\input docstrip.tex

\def\calextract#1#2#3#4{%
  \IfFileExists{#1.dtx}{%
    \ifcat$#4$\def\calexfn{#1}\else\def\calexfn{#4}\fi
    \generate{
      \file{\calexfn.#2}   {\from{#1.dtx}{#3}}}}
    \relax}

\keepsilent

\preamble
This file is part of the Calendar package,
Copyright (C) 1996, 1997 Frank Bennett, Jr.
All rights reserved.
------------------------------------------

IMPORTANT NOTICE:

You are not allowed to change this file.  You may however copy
this file to a file with a different name and then change the
copy if (a) you do not charge for the modified code, (b) you
acknowledge the author of this file in the new file, if it
is distributed to others, and (c) you attach these same
conditions to the new file.

You are not allowed to distribute this file alone.  You are not
allowed to take money for the distribution or use of this file
(or a changed version) except for a nominal charge for copying
etc.

You are allowed to distribute this file under the condition that
it is distributed with all of its contents, intact.

For error reports, or offers to help make this a more powerful,
friendlier, and altogether more thrilling package, please contact me on
fb@soas.ac.uk.  Better yet, make a contribution to
my pension.  Account details available on request.
------------------------------------------

\endpreamble

\Ask\demo{%
^^JUnpack demonstration files? (optional) ^^J (y/n):
}

\newif\if@Emacs
\IfFileExists{/usr/bin/emacs}{\@Emacstrue}{}
\IfFileExists{/usr/local/bin/emacs}{\@Emacstrue}{}
\IfFileExists{/usr/bin/mule}{\@Emacstrue}{}
\IfFileExists{/usr/local/bin/mule}{\@Emacstrue}{}
\if@Emacs
\IfFileExists{/usr/bin/tclsh}{\@Emacstrue}{}
\IfFileExists{/usr/local/bin/tclsh}{\@Emacstrue}{}
\IfFileExists{/usr/bin/expect}{\@Emacstrue}{}
\IfFileExists{/usr/local/bin/expect}{\@Emacstrue}{}
\Ask\unix{%
^^JUnpack address management files, meant for use on Unix systems (optional) ^^J (y/n):
}
\else
\message{If you are a Unix user and install Emacs, Tcl and the BBDB email}
\message{database, this pacakge contains a set of scripts that can be used}
\message{to print address lists for your personal diary.}
\fi

\Ask\overwrite{%
^^JBlindly OVERWRITE existing files (careful with this one) ^^J (y/n):
}

\ifx\overwrite\y\askforoverwritefalse\fi

\calextract{overword}{sty}{style}{}
\calextract{dates}{sty}{style}{}
\calextract{calendar}{sty}{style}{}
\calextract{evntlist}{sty}{style}{}
\calextract{autofilo}{sty}{style}{}
\calextract{monthly}{sty}{class}{}
\calextract{timesht}{sty}{package}{}
\calextract{timetabl}{sty}{package}{}
\calextract{weekly}{cls}{class}{}
\calextract{yearly}{sty}{style}{}
\calextract{htmlstuf}{sty}{htmlmonth}{hmonth}
\calextract{htmlstuf}{sty}{htmlevent}{hlist}
\calextract{htmlstuf}{sty}{htmlmonthevent}{hml}

\ifx\demo\y
  \bgroup

\preamble
\endpreamble

\postamble
\endpostamble

    \def\ins{n}
    \calextract{dates}{tex}{demo}{demodate}
    \calextract{overword}{tex}{demo}{demoover}
    \calextract{caldemos}{cld}{1997}{demo1997}
    \calextract{caldemos}{cld}{appts}{demoapt}
    \calextract{caldemos}{cld}{apptsr}{demoaptr}
    \calextract{caldemos}{cld}{demolist}{demolist}
    \calextract{caldemos}{cld}{events}{demoevt}
    \calextract{caldemos}{cld}{eventsr}{demoevtr}
    \calextract{caldemos}{tex}{monthly}{demomont}
    \calextract{caldemos}{tex}{timesht}{demotsht}
    \calextract{caldemos}{tex}{timetabl}{demottbl}
    \calextract{caldemos}{tex}{weekly}{demowkly}
    \calextract{caldemos}{tex}{yearly}{demoyrly}
    \calextract{caldemos}{tex}{evntlist}{demoevnt}
    \calextract{caldemos}{tex}{hmonth}{demohmth}
    \calextract{caldemos}{tex}{hlist}{demohlst}
    \calextract{caldemos}{tex}{hml}{demohml}
  \egroup
\fi

\ifx\unix\y

\preamble
\endpreamble

\postamble
\endpostamble

\def\WritePreamble#1{}
\def\WritePostamble#1{}

\generate{\file{mkaddr.Frank}{\from{mkaddr.dtx}{format}}
          \file{mkaddr.tcl}{\from{mkaddr.dtx}{script}}
          \file{dotemacs}{\from{mkaddr.dtx}{elisp}}
          \file{filoaddr.cls}{\from{mkaddr.dtx}{style}}
          \file{dvipshpplotq}{\from{plotutil.dtx}{script}}
          \file{hpplotsz.sty}{\from{plotutil.dtx}{style}}
   }
\fi

\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation, you have to move all *.sty}
\Msg{* and *.cls files into a directory searched by TeX.}
\Msg{*}
\IfFileExists{mkaddr.dtx}{\ifx\unix\y
\Msg{* You might also want to move the "mkaddr" file into your}
\Msg{* executable search path after reading the documentation}
\Msg{* in mkaddr.dtx and experimenting with the script to see}
\Msg{* if you find it useful.}
\Msg{*}\fi}\relax
\Msg{***********************************************************}