[BACK]Return to DOC_Make.SH CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari-2.2 / config

Annotation of OpenXM_contrib/pari-2.2/config/DOC_Make.SH, Revision 1.2

1.1       noro        1: pdf=wantpdfoutput
                      2: cat > doc/Makefile << EOT
                      3: #  This file was created by Configure. Any change made to it will be lost
                      4: #  next time configure is run.
                      5: #
                      6: SHELL = $make_sh
                      7:
                      8: doc all: manual refcard tutorial
                      9: docps: refcard.ps tutorial.ps users.ps ../INSTALL.ps
                     10: docpdf: users.pdf tutorial.pdf refcard.pdf ../INSTALL.pdf
                     11: manual: users.dvi
                     12: tutorial: tutorial.dvi
                     13: refcard: refcard.ps
                     14:
1.2     ! noro       15: .SUFFIXES: .tex .ipf .pod .inf .dumbpod .3 .html
1.1       noro       16:
                     17: paricfg.tex: paricfg.tex.in
                     18:        sed -e 's/@version@/$version.$patch/'\\
                     19:            -e 's!@includedir@!$includedir!'\\
                     20:            -e 's!@libdir@!$libdir!'\\
                     21:            -e 's!@miscdir@!$miscdir!' paricfg.tex.in > \$@
                     22:
                     23: tutorial.pdf: tutorial.tex paricfg.tex
                     24:        -touch $pdf
                     25:        pdftex tutorial.tex
                     26:        -rm -f $pdf
                     27:
                     28: refcard.pdf: refcard.tex paricfg.tex
                     29:        -touch $pdf
                     30:        pdftex refcard.tex
                     31:        -rm -f $pdf
                     32:
                     33: ../INSTALL.pdf: ../INSTALL.tex
                     34:        -cd ..; touch $pdf; pdftex INSTALL.tex; rm -f $pdf
                     35:
                     36: tutorial.dvi: tutorial.tex paricfg.tex
                     37:        -rm -f $pdf
                     38:        tex tutorial.tex
                     39:
                     40: refcard.dvi: refcard.tex paricfg.tex
                     41:        -rm -f $pdf
                     42:        tex refcard.tex
                     43:
                     44: ../INSTALL.dvi: ../INSTALL.tex
                     45:        -cd ..; rm -f $pdf; tex INSTALL.tex
                     46:
                     47: refcard.ps: refcard.dvi
                     48:        dvips -t landscape -t a4 refcard.dvi -o \$@
                     49:
                     50: users.ps: users.dvi
                     51:        dvips users.dvi -o \$@
                     52:
                     53: tutorial.ps: tutorial.dvi
                     54:        dvips tutorial.dvi -o \$@
                     55:
                     56: ../INSTALL.ps: ../INSTALL.dvi
                     57:        dvips ../INSTALL.dvi -o \$@
                     58:
                     59: users.dvi: users.tex appa.tex appb.tex appc.tex\\
                     60:  usersch1.tex usersch2.tex usersch3.tex usersch4.tex usersch5.tex\\
                     61:  paricfg.tex parimacro.tex
                     62:        -rm -f $pdf
                     63:        rm -f users.std; tex users;
                     64:        sed -e 's/!\([1-9]\)!/!00\1!/'\\
                     65:            -e 's/!\([1-9][0-9]\)!/!0\1!/'\\
                     66:            -e 's/\\\\EFF {}/f/g'\\
1.2     ! noro       67:          users.idx | env LANG=C sort -f |\\
1.1       noro       68:        sed -e 's/!00*\([0-9]*\)!/!\1!/' > users.std;
                     69:        tex users; rm -f users.idx
                     70:
                     71: users.pdf: users.tex appa.tex appb.tex appc.tex\\
                     72:  usersch1.tex usersch2.tex usersch3.tex usersch4.tex usersch5.tex\\
                     73:  paricfg.tex parimacro.tex
                     74:        rm -f users.std; touch $pdf; pdftex users;
                     75:        sed -e 's/!\([1-9]\)!/!00\1!/'\\
                     76:            -e 's/!\([1-9][0-9]\)!/!0\1!/'\\
                     77:            -e 's/\\\\EFF {}/f/g'\\
1.2     ! noro       78:          users.idx | env LANG=C sort -f |\\
1.1       noro       79:        sed -e 's/!00*\([0-9]*\)!/!\1!/' > users.std;
                     80:        pdftex users; rm -f users.idx $pdf
                     81:
                     82: gpman: gp.1
                     83:        nroff -man gp.1 | unix2dos -ascii > gp.man
                     84:
                     85: clean:
                     86:        rm -f *.log *.dvi *.idx *.ps *.pdf *.aux *.toc users.std $pdf\\
                     87:        ../INSTALL.log ../INSTALL.dvi ../INSTALL.idx ../INSTALL.pdf\\
                     88:        ../INSTALL.aux ../INSTALL.toc ../INSTALL.ps ../$pdf
                     89:
                     90: cleandoc: clean
                     91:
                     92: veryclean: clean
                     93:        rm -f paricfg.tex gp.man
                     94:
                     95: .tex.pod:
                     96:        perl gphelp -to_pod \$*.tex > tmp_pod && mv tmp_pod \$*.pod
                     97:
                     98: .tex.dumbpod:
1.2     ! noro       99:        perl gphelp -to_dumb_pod \$*.tex > tmp_pod && mv tmp_pod \$*.dumbpod
1.1       noro      100:
                    101: .ipf.inf:
                    102:        ipfc /INF \$*.ipf
                    103:
                    104: # This is for testing:
                    105:
                    106: .pod.ipf:
                    107:        pod2ipf \$*.pod > tmp_ipf && mv tmp_ipf \$*.ipf
                    108:
                    109: pari.ipf:  refcard.pod tutorial.pod usersch1.pod usersch1.pod usersch2.pod usersch3.pod usersch4.pod usersch5.pod appa.pod appb.pod appc.pod
                    110:        pod2ipf --title="PARI/GP Manual" --by-files --section-name="Getting started" --file=refcard.pod --file=tutorial.pod --section-name="User guide" --file=usersch1.pod --file=usersch1.pod --file=usersch2.pod --file=usersch3.pod --file=usersch4.pod --file=usersch5.pod --section-name=Appendices --file=appa.pod --file=appb.pod --file=appc.pod > tmp_ipf && mv tmp_ipf pari.ipf
                    111:
1.2     ! noro      112: dumbpod: appa.dumbpod appb.dumbpod appc.dumbpod usersch1.dumbpod usersch2.dumbpod usersch3.dumbpod usersch4.dumbpod usersch5.dumbpod
        !           113:
1.1       noro      114: # Wrong syntax...  How to convert a group of files?
                    115: #pari.html:  refcard.dumbpod tutorial.dumbpod usersch1.dumbpod usersch1.dumbpod usersch2.dumbpod usersch3.dumbpod usersch4.dumbpod usersch5.dumbpod appa.dumbpod appb.dumbpod appc.dumbpod
                    116: #      pod2html --title="PARI/GP Manual" --by-files --section-name="Getting started" --file=refcard.dumbpod --file=tutorial.dumbpod --section-name="User guide" --file=usersch1.dumbpod --file=usersch1.dumbpod --file=usersch2.dumbpod --file=usersch3.dumbpod --file=usersch4.dumbpod --file=usersch5.dumbpod --section-name=Appendices --file=appa.dumbpod --file=appb.dumbpod --file=appc.dumbpod > tmp_ipf && mv tmp_ipf pari.html
                    117:
                    118: .dumbpod.html:
1.2     ! noro      119:        pod2html --title="PARI/GP Manual, part \$*" --infile=\$*.dumbpod --outfile=tmp_html && mv tmp_html \$*.html
        !           120:
        !           121: manpages: dumbpod appa.3 appb.3 appc.3 usersch1.3 usersch2.3 usersch3.3 usersch4.3 usersch5.3
        !           122:
        !           123: html: dumbpod appa.html appb.html appc.html usersch1.html usersch2.html usersch3.html usersch4.html usersch5.html
        !           124:
        !           125: .dumbpod.3:
        !           126:        pod2man --section=3 --center="PARI/GP Manual, part \$*" --release=$version.$patch --lax \$*.dumbpod > tmp_man && mv tmp_man \$*.3
1.1       noro      127:
                    128:
                    129: EOT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>