summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/minitoc/pmk
blob: 267b666ad52977fd19fc029b68b2118b42643a4d (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
#! /bin/csh
# set verbose
# choose a type of printer
set IMP=l4si2
# create a backup directory
if ( -d OLD ) then
else
   mkdir OLD
   echo 'OLD directory created'
endif
# save some files into the backup directory
echo 'Saving old files into OLD directory'
mv minitoc.sty mtcoff.sty minitoc.ist mtcglo.ist fminitoc.dtx fminitoc.ist minitoc.pre OLD
mv minitoc.lan fminitoc.lan OLD
mv boldsc.sty mypatches.sty franc.sty frbib.sty frnew.sty OLD
mv mtcpatchmem.sty OLD
mv *.mld OLD
mv *.mlo OLD
echo 'Creating the package... you can sip a cappuccino'
# create the package from minitoc.ins and minitoc.dtx
latex minitoc.ins
# save the log file of this phase
cp minitoc.log minitoc.log1
# create the documentation (DVI): 3 latex runs, with index and biblio
echo 'Creating the english documentation...'
latex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
sed -e's/:>/>/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
sed -e's/{[0-9]*}$/{0}/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
bibtex minitoc
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg  minitoc.ilg1
makeindex -s mtcglo.ist -o minitoc.gls minitoc.glo
sed -e's/subitem  *\\ /subitem /' < minitoc.gls > minitoc.gls1; mv minitoc.gls1 minitoc.gls
sed -e's/[	 ]*0$/ \\mbox{}/' < minitoc.gls > minitoc.gls1; mv minitoc.gls1 minitoc.gls
latex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
sed -e's/:>/>/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
sed -e's/{[0-9]*}$/{0}/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg  minitoc.ilg1
makeindex -s mtcglo.ist -o minitoc.gls minitoc.glo
sed -e's/subitem  *\\ /subitem /' < minitoc.gls > minitoc.gls1; mv minitoc.gls1 minitoc.gls
sed -e's/[	 ]*0$/ \\mbox{}/' < minitoc.gls > minitoc.gls1; mv minitoc.gls1 minitoc.gls
latex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
sed -e's/:>/>/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
sed -e's/{[0-9]*}$/{0}/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
# convert the .dvi into PostScript
dvips -P$IMP -o minitoc.ps minitoc
# create the documentation (PDF): 3 pdflatex runs, with index and biblio
pdflatex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
sed -e's/:>/>/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
sed -e's/{[0-9]*}$/{0}/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
bibtex minitoc
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg  minitoc.ilg1
makeindex -s mtcglo.ist -o minitoc.gls minitoc.glo
sed -e's/subitem  *\\ /subitem /' < minitoc.gls > minitoc.gls1; mv minitoc.gls1 minitoc.gls
sed -e's/[	 ]*0$/ \\mbox{}/' < minitoc.gls > minitoc.gls1; mv minitoc.gls1 minitoc.gls
pdflatex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
sed -e's/:>/>/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
sed -e's/{[0-9]*}$/{0}/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg  minitoc.ilg1
makeindex -s mtcglo.ist -o minitoc.gls minitoc.glo
sed -e's/subitem  *\\ /subitem /' < minitoc.gls > minitoc.gls1; mv minitoc.gls1 minitoc.gls
sed -e's/[	 ]*0$/ \\mbox{}/' < minitoc.gls > minitoc.gls1; mv minitoc.gls1 minitoc.gls
pdflatex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
sed -e's/:>/>/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
sed -e's/{[0-9]*}$/{0}/' < minitoc.glo > minitoc.glo1; mv minitoc.glo1 minitoc.glo
# french documentation
if ( -f fminitoc.dtx ) then
echo 'Creating the french documentation...'
# create the french documentation (DVI): 3 latex runs, with index and biblio
latex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
bibtex fminitoc
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg  fminitoc.ilg1
makeindex -s mtcglo.ist -o fminitoc.gls fminitoc.glo
sed -e's/subitem  *\\ /subitem /' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls
sed -e's/[	 ]*0$/ \\mbox{}/' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls
latex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg  fminitoc.ilg1
makeindex -s mtcglo.ist -o fminitoc.gls fminitoc.glo
sed -e's/subitem  *\\ /subitem /' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls
sed -e's/[	 ]*0$/ \\mbox{}/' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls
latex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
# convert the .dvi into PostScript
dvips -P$IMP -o fminitoc.ps fminitoc
# create the french documentation (PDF): 3 pdflatex runs, with index and biblio
pdflatex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
bibtex fminitoc
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg  fminitoc.ilg1
makeindex -s mtcglo.ist -o fminitoc.gls fminitoc.glo
sed -e's/subitem  *\\ /subitem /' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls
sed -e's/[	 ]*0$/ \\mbox{}/' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls
pdflatex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg  fminitoc.ilg1
makeindex -s mtcglo.ist -o fminitoc.gls fminitoc.glo
sed -e's/subitem  *\\ /subitem /' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls
sed -e's/[	 ]*0$/ \\mbox{}/' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls
pdflatex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo
else
  echo 'French is still missing'
endif
# repartition
echo 'Repartition of files into classes'
foreach i ( 0 1 2 3 4 5 6 7 8 9 )
  if ( -e CL$i ) then
    \rm -rf CL$i
  endif
  if ( -d CL$i ) then
    \rm -rf CL$i/*
    rmdir CL$i
  else 
    mkdir CL$i
  endif
end
# class 0
echo 'Class 0'
cp minitoc.dtx minitoc.ins fminitoc.dtx CL0
# class 1
echo 'Class 1'
cp minitoc.sty mtcoff.sty CL1
cp *.mld *.mlo CL1
# class 2
echo 'Class 2'
cp INSTALL minitoc.l README catalog TODO CL2
# class 3
echo 'Class 3'
cp minitoc-ex.tex mini-art.tex add.tex add.bib CL3
# class 4
echo 'Class 4'
cp minitoc.bug minitoc.sum CL4
# class 5
echo 'Class 5'
cp minitoc.dtx minitoc.ins minitoc.bib minitoc.ist minitoc.lan CL5
# class 6
echo 'Class 6'
cp minitoc.dtx fminitoc.dtx fminitoc.bib fminitoc.ist fminitoc.lan CL6
cp franc.sty frbib.sty frnew.sty frplain1.bst CL6
# class 7
echo 'Class 7'
cp minitoc.pdf minitoc.ps CL7
# class 8
echo 'Class 8'
cp fminitoc.pdf fminitoc.ps CL8
# class 9
echo 'Class 9'
cp pmk imk emk fmk rmk CL9
# Cleaning
echo "Cleaning"
\rm minitoc.[pm]tc* minitoc.[pm]l[ft]*
\rm fminitoc.[pm]tc* fminitoc.[pm]l[ft]*
# it's all!
echo "It's all, folks..."
exit