summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/minitoc/pmk
blob: e509e76c56adada2495876ea88b3918121b068e9 (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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
#! /bin/csh
# set verbose
# choose a type of printer
set HEADER=duplex2v.pro
# create a backup directory
set w=`whoami`.pmk
set OLD=/tmp/$w/OLD
if ( -d $OLD ) then
else
   mkdir -p $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 mtcmess.sty minitoc.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
mv mtc-add.bib $OLD
foreach i ( \
   mtc-2c mtc-2nd mtc-add mtc-ads mtc-amm mtc-apx mtc-art \
   mtc-bk mtc-bo mtc-ch0 mtc-cri mtc-fo1 mtc-fo2 mtc-gap \
   mtc-hi1 mtc-hi2 mtc-hia mtc-hir mtc-hop mtc-liv \
   mtc-mem mtc-mm1 mtc-mu mtc-sbf mtc-scr mtc-syn \
   mtc-tbi mtc-tlc mtc-tlo mtc-tsf \
)
   foreach j ( tex pdf )
   mv $i.$j $OLD
   end
end
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): 4 latex runs, with index and biblio
if ( -f minitoc.dtx ) then
if ( -f minitoc.maf ) then
   cat minitoc.maf | xargs -i -t \rm {}
endif
echo 'Creating the english documentation...'
latex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
bibtex minitoc
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg minitoc.ilg1
#
latex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg minitoc.ilg1
#
latex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg minitoc.ilg1
#
latex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
cp minitoc.log ps-minitoc.log
# convert the .dvi into PostScript
dvips -h $HEADER -o minitoc.ps minitoc
# create the documentation (PDF): 4 pdflatex runs, with index and biblio
pdflatex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
bibtex minitoc
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg minitoc.ilg1
#
pdflatex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg minitoc.ilg1
#
pdflatex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
makeindex -s minitoc.ist -o minitoc.ind minitoc.idx
mv minitoc.ilg minitoc.ilg1
#
pdflatex minitoc.dtx
sed -e's/:>/=/' < minitoc.idx > minitoc.idx1; mv minitoc.idx1 minitoc.idx
endif
# french documentation
if ( -f fminitoc.dtx ) then
if ( -f fminitoc.maf ) then
   cat fminitoc.maf | xargs -i -t \rm {}
endif
echo 'Creating the french documentation...'
# create the french documentation (DVI): 4 latex runs, with index and biblio
latex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
bibtex fminitoc
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg fminitoc.ilg1
#
latex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg fminitoc.ilg1
#
latex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg fminitoc.ilg1
#
latex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
cp fminitoc.log ps-fminitoc.log
# convert the .dvi into PostScript
dvips -h $HEADER -o fminitoc.ps fminitoc
# create the french documentation (PDF): 4 pdflatex runs, with index and biblio
pdflatex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
bibtex fminitoc
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg fminitoc.ilg1
#
pdflatex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg fminitoc.ilg1
#
pdflatex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx
mv fminitoc.ilg fminitoc.ilg1
#
pdflatex fminitoc.dtx
sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx
else
  echo 'French is still missing'
endif
# composition
#######################
foreach f ( mtc-add mtc-ads )
foreach i ( 1 2 3 )
pdflatex $f
bibtex $f
if ( -e $f.idx ) then
        makeindex -s gind.ist -o $f.ind $f.idx
endif
if ( -e $f.glo ) then
        makeindex -s gglo.ist -o $f.gls $f.glo
endif
end
if ( -e $f.maf ) then
   \rm -f `cat $f.maf` $f.aux $f.log $f.toc $f.bbl $f.blg $f.lof $f.lot $f.ind $f.idx $f.ind $f.maf
endif
end
#######################
foreach f ( \
   mtc-2c mtc-2nd mtc-amm mtc-apx mtc-art mtc-bk mtc-bo mtc-ch0 mtc-cri mtc-fo1 mtc-fo2 mtc-gap \
   mtc-hi1 mtc-hi2 mtc-hia mtc-hir mtc-hop mtc-liv mtc-mem mtc-mm1 mtc-mu mtc-sbf mtc-scr mtc-syn \
   mtc-tbi mtc-tlc mtc-tlo mtc-tsf \
)
   foreach i ( 1 2 3 )
      pdflatex $f
   end
if ( -e $f.maf ) then
   \rm -f `cat $f.maf` $f.aux $f.log $f.toc $f.bbl $f.blg $f.lof $f.lot $f.ind $f.idx $f.ind $f.maf
endif
end
# repartition
echo 'Repartition of files into classes'
set WCL=/tmp/$w/CL
foreach i ( 0 1 2 3 4 5 6 7 8 9 )
  if ( -e ${WCL}$i ) then
    \rm -rf ${WCL}$i
  endif
  if ( -d ${WCL}$i ) then
    \rm -rf ${WCL}$i/*
    rmdir ${WCL}$i
  else 
    mkdir -p ${WCL}$i
  endif
end
# class 0
echo 'Class 0'
cp minitoc.dtx minitoc.ins fminitoc.dtx ${WCL}0
# class 1
echo 'Class 1'
cp minitoc.sty mtcoff.sty mtcmess.sty mtcpatchmem.sty ${WCL}1
cp *.mld *.mlo ${WCL}1
# class 2
echo 'Class 2'
cp INSTALL minitoc.l README catalog TODO ${WCL}2
# class 3
echo 'Class 3'
cp mtc-add.bib ${WCL}3
foreach i ( tex pdf )
   foreach j ( \
      mtc-2c mtc-2nd mtc-add mtc-ads mtc-amm mtc-apx mtc-art mtc-bk mtc-bo mtc-ch0 mtc-cri \
      mtc-fo1 mtc-fo2 mtc-gap mtc-hi1 mtc-hi2 mtc-hia mtc-hir mtc-hop mtc-liv mtc-mem mtc-mm1 \
      mtc-mu mtc-sbf mtc-scr mtc-syn mtc-tbi mtc-tlc mtc-tlo mtc-tsf \
   )
    cp $j.$i ${WCL}3
   end
end
# class 4
echo 'Class 4'
cp minitoc.bug minitoc.sum ${WCL}4
# class 5
echo 'Class 5'
cp minitoc.dtx minitoc.ins minitoc.bib minitoc.ist minitoc.lan en-mtc.bst ${WCL}5
cp lamed.eps lamed.pdf lamed.tex ${WCL}5
# class 6
echo 'Class 6'
cp minitoc.dtx fminitoc.dtx fminitoc.bib fminitoc.ist fminitoc.lan minitoc.pre ${WCL}6
cp franc.sty frbib.sty frnew.sty fr-mtc.bst ${WCL}6
# class 7
echo 'Class 7'
cp minitoc.pdf minitoc.ps ${WCL}7
# class 8
echo 'Class 8'
cp fminitoc.pdf fminitoc.ps ${WCL}8
# class 9
echo 'Class 9'
cp pmk imk emk fmk rmk tmk xmk duplex2v.pro ${WCL}9
# Cleaning
echo "Cleaning"
if ( -f minitoc.maf ) then
   cat minitoc.maf | xargs -i -t \rm {}
endif
if ( -f fminitoc.maf ) then
   cat fminitoc.maf | xargs -i -t \rm {}
endif
#
set UN=`whoami`.tmk
set RD=/tmp/$UN
if ( -d $RD ) then
else
   mkdir $RD
endif
set TEXMFDIR=texmf
set TEXMF=$RD/$TEXMFDIR
echo "BIB files"
if ( -d $TEXMF ) then
else
   mkdir -m 755 $TEXMF
endif
if ( -d $TEXMF/bibtex ) then
else
   mkdir -m 755 $TEXMF/bibtex
endif
if ( -d $TEXMF/bibtex/bib ) then
else
   mkdir $TEXMF/bibtex/bib
endif
if ( -d $TEXMF/bibtex/bib/minitoc ) then
   \rm -rf $TEXMF/bibtex/bib/minitoc
endif
mkdir -m 755 $TEXMF/bibtex/bib/minitoc
foreach i ( fminitoc.bib minitoc.bib mtc-add.bib )
   cp $i $TEXMF/bibtex/bib/minitoc
   chmod 744 $TEXMF/bibtex/bib/minitoc/$i
end
#
echo "BST files"
if ( -d $TEXMF/bibtex/bst ) then
else
   mkdir $TEXMF/bibtex/bst
endif
if ( -d $TEXMF/bibtex/bst/minitoc ) then
   \rm -rf $TEXMF/bibtex/bst/minitoc
endif
mkdir -m 755 $TEXMF/bibtex/bst/minitoc
foreach i ( en-mtc.bst fr-mtc.bst)
   cp $i $TEXMF/bibtex/bst/minitoc
   chmod 744 $TEXMF/bibtex/bst/minitoc/$i
end
#
echo "SCRIPT files"
if ( -d $TEXMF/scripts ) then
else
   mkdir -m 755 $TEXMF/scripts
endif
if ( -d $TEXMF/scripts/minitoc ) then
   \rm -rf $TEXMF/scripts/minitoc
endif
mkdir -m 755 $TEXMF/scripts/minitoc
foreach i ( emk fmk imk pmk rmk tmk )
   cp $i $TEXMF/scripts/minitoc
   chmod 755 $TEXMF/scripts/minitoc/$i
end
#
echo "DVIPS files"
if ( -d $TEXMF/dvips ) then
else
   mkdir -m 755 $TEXMF/dvips
endif
if ( -d $TEXMF/dvips/minitoc ) then
   \rm -rf $TEXMF/dvips/minitoc
endif
mkdir -m 755 $TEXMF/dvips/minitoc
cp duplex2v.pro $TEXMF/dvips/minitoc
chmod 744 $TEXMF/dvips/minitoc/duplex2v.pro
#
echo "INDEXING files"
if ( -d $TEXMF/makeindex ) then
else
   mkdir -m 755 $TEXMF/makeindex
endif
if ( -d $TEXMF/makeindex/minitoc ) then
   \rm -rf $TEXMF/makeindex/minitoc
endif
mkdir -m 755 $TEXMF/makeindex/minitoc
foreach i ( fminitoc.ist minitoc.ist )
   cp $i $TEXMF/makeindex/minitoc
   chmod 744 $TEXMF/makeindex/minitoc/$i
end
#
echo "LATEX files"
if ( -d  $TEXMF/tex ) then
else
   mkdir -m 755 $TEXMF/tex
endif
if ( -d $TEXMF/tex/latex ) then
else
   mkdir -m 755 $TEXMF/tex/latex
endif
if ( -d $TEXMF/tex/latex/minitoc ) then
   \rm -rf $TEXMF/tex/latex/minitoc
endif
mkdir -m 755 $TEXMF/tex/latex/minitoc
foreach i ( \
UKenglish.mld \
USenglish.mld \
acadian.mld \
acadien.mld \
afrikaan.mld \
afrikaans.mld \
albanian.mld \
american.mld \
arab.mld \
arab2.mld \
arabi.mld \
arabic.mld \
armenian.mld \
australian.mld \
austrian.mld \
bahasa.mld \
bahasai.mld \
bahasam.mld \
bangla.mld \
basque.mld \
bicig.mld \
bicig2.mld \
bicig3.mld \
bithe.mld \
brazil.mld \
brazilian.mld \
breton.mld \
british.mld \
bulgarian.mld \
bulgarianb.mld \
buryat.mld \
buryat2.mld \
canadian.mld \
canadien.mld \
castillan.mld \
castillian.mld \
catalan.mld \
chinese1.mld \
chinese1.mlo \
chinese2.mld \
chinese2.mlo \
croatian.mld \
czech.mld \
danish.mld \
devanagari.mld \
dutch.mld \
english.mld \
english1.mld \
english2.mld \
esperant.mld \
esperanto.mld \
estonian.mld \
ethiopia.mld \
ethiopian.mld \
ethiopian2.mld \
farsi1.mld \
farsi1.mlo \
farsi2.mld \
farsi2.mlo \
farsi3.mld \
finnish.mld \
finnish2.mld \
francais.mld \
french.mld \
french1.mld \
french2.mld \
frenchb.mld \
frenchle.mld \
frenchpro.mld \
galician.mld \
german.mld \
germanb.mld \
germanb2.mld \
greek-mono.mld \
greek-polydemo.mld \
greek-polykatha.mld \
greek.mld \
guarani.mld \
hangul-u8.mld \
hangul-u8.mlo \
hangul1.mld \
hangul1.mlo \
hangul2.mld \
hangul2.mlo \
hangul3.mld \
hangul3.mlo \
hangul4.mld \
hangul4.mlo \
hanja-u8.mld \
hanja-u8.mlo \
hanja1.mld \
hanja1.mlo \
hanja2.mld \
hanja2.mlo \
hebrew.mld \
hebrew2.mld \
hindi-modern.mld \
hindi.mld \
hungarian.mld \
icelandic.mld \
indon.mld \
indonesian.mld \
interlingua.mld \
irish.mld \
italian.mld \
italian2.mld \
japanese.mld \
japanese.mlo \
japanese2.mld \
japanese2.mlo \
japanese3.mld \
japanese3.mlo \
japanese4.mld \
japanese4.mlo \
japanese5.mld \
japanese5.mlo \
japanese6.mld \
japanese6.mlo \
kannada.mld \
khalkha.mld \
latin.mld \
latin2.mld \
latvian.mld \
letton.mld \
lithuanian.mld \
lowersorbian.mld \
lsorbian.mld \
magyar.mld \
magyar2.mld \
magyar3.mld \
malay.mld \
malayalam-keli.mld \
malayalam-omega.mld \
malayalam-omega.mlo \
malayalam-rachana.mld \
malayalam-rachana2.mld \
manju.mld \
meyalu.mld \
minitoc.sty \
mongol.mld \
mtcmess.sty \
mtcoff.sty \
mtcpatchmem.sty \
naustrian.mld \
newzealand.mld \
ngerman.mld \
ngermanb.mld \
ngermanb2.mld \
norsk.mld \
norsk2.mld \
nynorsk.mld \
nynorsk2.mld \
polish.mld \
polish2.mld \
polski.mld \
portuges.mld \
portuguese.mld \
romanian.mld \
romanian2.mld \
romanian3.mld \
russian-cca.mld \
russian-cca.mlo \
russian-cca1.mld \
russian-cca1.mlo \
russian-lh.mld \
russian-lh.mlo \
russian-lhcyralt.mld \
russian-lhcyralt.mlo \
russian-lhcyrkoi.mld \
russian-lhcyrkoi.mlo \
russian-lhcyrwin.mld \
russian-lhcyrwin.mlo \
russian.mld \
russian2m.mld \
russian2o.mld \
russianb.mld \
russianc.mld \
samin.mld \
scottish.mld \
serbian.mld \
serbianc.mld \
slovak.mld \
slovene.mld \
spanish.mld \
spanish2.mld \
spanish3.mld \
spanish4.mld \
swedish.mld \
swedish2.mld \
thai.mld \
thai.mlo \
turkish.mld \
uighur.mld \
uighur2.mld \
uighur3.mld \
ukraineb.mld \
ukrainian.mld \
uppersorbian.mld \
usorbian.mld \
vietnam.mld \
vietnamese.mld \
welsh.mld \
xalx.mld \
xalx2.mld \
xalx3.mld \
)
   cp $i $TEXMF/tex/latex/minitoc
   chmod 744 $TEXMF/tex/latex/minitoc/$i
end
#
## echo "TPM file"
## if ( -d $TEXMF/tpm ) then
## else
##    mkdir -m 755 $TEXMF/tpm
## endif
## cp minitoc.tpm $TEXMF/tpm/minitoc.tpm
## chmod 744 $TEXMF/tpm/minitoc.tpm
#
echo "DOCUMENTATION files"
if ( -d $TEXMF/doc ) then
else
   mkdir -m 755 $TEXMF/doc
endif
if ( -d $TEXMF/doc/latex ) then
else
   mkdir -m 755 $TEXMF/doc/latex
endif
if ( -d $TEXMF/doc/latex/minitoc ) then
   \rm -rf $TEXMF/doc/latex/minitoc
endif
mkdir -m 755 $TEXMF/doc/latex/minitoc
foreach i ( \
INSTALL \
README \
TODO \
catalog \
fminitoc.lan \
fminitoc.pdf \
lamed.eps \
lamed.pdf \
lamed.tex \
minitoc.bug \
minitoc.l \
minitoc.lan \
minitoc.pdf \
minitoc.pre \
minitoc.sum \
franc.sty \
frbib.sty \
frnew.sty \
mtc-2c.pdf \
mtc-2c.tex \
mtc-2nd.pdf \
mtc-2nd.tex \
mtc-add.pdf \
mtc-add.tex \
mtc-ads.pdf \
mtc-ads.tex \
mtc-amm.pdf \
mtc-amm.tex \
mtc-apx.pdf \
mtc-apx.tex \
mtc-art.pdf \
mtc-art.tex \
mtc-bk.pdf \
mtc-bk.tex \
mtc-bo.pdf \
mtc-bo.tex \
mtc-ch0.pdf \
mtc-ch0.tex \
mtc-cri.pdf \
mtc-cri.tex \
mtc-fo1.pdf \
mtc-fo1.tex \
mtc-fo2.pdf \
mtc-fo2.tex \
mtc-gap.pdf \
mtc-gap.tex \
mtc-hi1.pdf \
mtc-hi1.tex \
mtc-hi2.pdf \
mtc-hi2.tex \
mtc-hia.pdf \
mtc-hia.tex \
mtc-hir.pdf \
mtc-hir.tex \
mtc-hop.pdf \
mtc-hop.tex \
mtc-liv.pdf \
mtc-liv.tex \
mtc-mem.pdf \
mtc-mem.tex \
mtc-mm1.pdf \
mtc-mm1.tex \
mtc-mu.pdf \
mtc-mu.tex \
mtc-sbf.pdf \
mtc-sbf.tex \
mtc-scr.pdf \
mtc-scr.tex \
mtc-syn.pdf \
mtc-syn.tex \
mtc-tbi.pdf \
mtc-tbi.tex \
mtc-tlc.pdf \
mtc-tlc.tex \
mtc-tsf.pdf \
mtc-tsf.tex \
)
   cp $i $TEXMF/doc/latex/minitoc
end
#
echo "SOURCE files"
if ( -d $TEXMF/source ) then
else
   mkdir -m 755 $TEXMF/source
endif
if ( -d $TEXMF/source/latex ) then
else
   mkdir -m 755 $TEXMF/source/latex
endif
if ( -d $TEXMF/source/latex/minitoc ) then
   \rm -rf $TEXMF/source/latex/minitoc
endif
mkdir -m 755 $TEXMF/source/latex/minitoc
foreach i ( fminitoc.dtx minitoc.dtx minitoc.ins )
   cp $i $TEXMF/source/latex/minitoc
   chmod 744 $TEXMF/source/latex/minitoc/$i
end
#
echo "MINITOC-TEXMF.ZIP"
set WD=`pwd`
cd $RD/$TEXMFDIR
\rm -f minitoc-texmf.zip
zip -r minitoc-texmf.zip * -i \*
cd $WD
# it's all!
echo "It's all, folks..."
exit