diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/minitoc/pmk')
-rwxr-xr-x | Master/texmf-dist/doc/latex/minitoc/pmk | 122 |
1 files changed, 59 insertions, 63 deletions
diff --git a/Master/texmf-dist/doc/latex/minitoc/pmk b/Master/texmf-dist/doc/latex/minitoc/pmk index 267b666ad52..a3e9da15ff3 100755 --- a/Master/texmf-dist/doc/latex/minitoc/pmk +++ b/Master/texmf-dist/doc/latex/minitoc/pmk @@ -1,7 +1,7 @@ #! /bin/csh # set verbose # choose a type of printer -set IMP=l4si2 +set HEADER=duplex2v.pro # create a backup directory if ( -d OLD ) then else @@ -10,7 +10,7 @@ else 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.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 @@ -21,110 +21,100 @@ echo 'Creating the package... you can sip a cappuccino' 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 +# 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 -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 +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 -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 +cp minitoc.log ps-minitoc.log # convert the .dvi into PostScript -dvips -P$IMP -o minitoc.ps minitoc -# create the documentation (PDF): 3 pdflatex runs, with index and biblio +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 -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 +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): 3 latex runs, with index and biblio +# 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 -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 +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 -P$IMP -o fminitoc.ps fminitoc -# create the french documentation (PDF): 3 pdflatex runs, with index and biblio +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 -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 +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 -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 @@ -146,23 +136,25 @@ echo 'Class 0' cp minitoc.dtx minitoc.ins fminitoc.dtx CL0 # class 1 echo 'Class 1' -cp minitoc.sty mtcoff.sty CL1 +cp minitoc.sty mtcoff.sty mtcmess.sty mtcpatchmem.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 +cp minitoc-ex.tex mini-art.tex add.tex addsec.tex add.bib CL3 +cp hide1.tex hide2.tex apx.tex gaps.tex 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 +cp minitoc.dtx minitoc.ins minitoc.bib minitoc.ist minitoc.lan plainurl.bst CL5 +cp lamed.eps lamed.pdf lamed.tex CL5 # class 6 echo 'Class 6' -cp minitoc.dtx fminitoc.dtx fminitoc.bib fminitoc.ist fminitoc.lan CL6 +cp minitoc.dtx fminitoc.dtx fminitoc.bib fminitoc.ist fminitoc.lan minitoc.pre CL6 cp franc.sty frbib.sty frnew.sty frplain1.bst CL6 # class 7 echo 'Class 7' @@ -172,11 +164,15 @@ echo 'Class 8' cp fminitoc.pdf fminitoc.ps CL8 # class 9 echo 'Class 9' -cp pmk imk emk fmk rmk CL9 +cp pmk imk emk fmk rmk duplex2v.pro CL9 # Cleaning echo "Cleaning" -\rm minitoc.[pm]tc* minitoc.[pm]l[ft]* -\rm fminitoc.[pm]tc* fminitoc.[pm]l[ft]* +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 # it's all! echo "It's all, folks..." exit |