3 MAKEINFO=$(EMACS) -batch -q -no-site-file
4 INFOSWI=-l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
5 XINFOSWI=-l texinfmt -f texinfo-every-node-update -f texinfo-format-buffer -f save-buffer
9 INFODIR=/usr/local/info
13 most: texi2latex.elc latex latexps
15 .SUFFIXES: .texi .dvi .ps
18 $(MAKEINFO) -eval '(find-file "$<")' $(XINFOSWI)
20 dvi: gnus.dvi message.dvi
23 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
24 $(TEXI2DVI) gnustmp.texi
28 refcard.dvi: refcard.tex gnuslogo.refcard gnusref.tex
32 rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
33 *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
34 gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
35 gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
36 gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi
39 makeinfo -o gnus gnus.texi
40 makeinfo -o message message.texi
42 texi2latex.elc: texi2latex.el
43 $(EMACS) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
45 latex: gnus.texi texi2latex.elc
46 $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
51 egrep -v "label.*Index|chapter.*Index" gnus.latexi > gnus.tmplatexi1
52 $(LATEX) gnus.tmplatexi1
54 makeindex -o gnus.kind gnus.kidx
55 makeindex -o gnus.cind gnus.cidx
56 makeindex -o gnus.gind gnus.gidx
57 sed 's/\\char 5E\\relax {}/\\symbol{"5E}/' < gnus.kind > gnus.tmpkind
58 mv gnus.tmpkind gnus.kind
59 egrep -v "end{document}" gnus.tmplatexi1 > gnus.tmplatexi
60 cat postamble.tex >> gnus.tmplatexi
61 $(LATEX) gnus.tmplatexi
62 $(LATEX) gnus.tmplatexi
63 $(DVIPS) -f gnus.dvi > gnus.ps
75 rm -f gnus-manual-a4.ps.gz gnus-manual-standard.ps.gz
77 mv /local/tmp/larsi/gnus.ps /local/tmp/larsi/gnus-manual-a4.ps
78 gzip /local/tmp/larsi/gnus-manual-a4.ps
79 sed 's/,a4paper//' gnus.latexi > gnus-standard.latexi
80 mv gnus-standard.latexi gnus.latexi
82 mv /local/tmp/larsi/gnus.ps /local/tmp/larsi/gnus-manual-standard.ps
83 gzip /local/tmp/larsi/gnus-manual-standard.ps
86 cp /local/tmp/larsi/gnus-manual-standard.ps.gz \
87 /local/tmp/larsi/gnus-manual-a4.ps.gz \
88 /local/ftp/pub/emacs/gnus/manual
89 mv /local/tmp/larsi/gnus-manual-standard.ps.gz \
90 /local/tmp/larsi/gnus-manual-a4.ps.gz \
91 /hom/larsi/www_docs/www.gnus.org/documents
95 rm -f gnus.dvi gnus.ps
99 rm -f *.orig *.rej *.elc *~ gnus gnus-[0-9] gnus-[0-9][0-9]
100 rm -f message message-[0-9]
103 cp gnus gnus-[0-9] gnus-[0-9][0-9] $(INFODIR)
104 cp message $(INFODIR)
108 if [ ! -e tmp ]; then mkdir tmp; fi
118 cd herds ; for i in new-herd-[0-9]*.gif; do echo $$i; giftopnm $$i | pnmcrop -white | pnmmargin -white 9 | pnmscale 2 | pnmconvol convol5.pnm | ppmtopgm | pnmdepth 255 | pnmtops -width 100 -height 100 -noturn > ../tmp/`basename $$i .gif`.ps; done
119 cd herds ; giftopnm new-herd-section.gif | pnmscale 4 | pnmconvol convol11.pnm | ppmtopgm | pnmdepth 255 | pnmtops -noturn -width 100 -height 100 > ../tmp/new-herd-section.ps
123 cd screen ; for i in *.gif; do echo $$i; giftopnm $$i | pnmmargin -black 1 | ppmtopgm | pnmtops -width 100 -height 100 -noturn > ../tmp/`basename $$i .gif`.ps; done
126 giftopnm misc/larsi.gif | ppmtopgm | pnmtops -noturn > tmp/larsi.ps
127 tifftopnm misc/eseptember.tif | pnmscale 4 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/september.ps
128 tifftopnm misc/fseptember.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fseptember.ps
129 tifftopnm misc/fred.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/fred.ps
130 tifftopnm misc/ered.tif | pnmscale 2 | ppmtopgm | pnmtops -noturn -width 100 -height 100 > tmp/red.ps
133 cd etc; for i in gnus-*.xpm; do echo $$i; xpmtoppm $$i | ppmtopgm | pnmdepth 255 | pnmtops -noturn > ../tmp/`basename $$i .xpm`.ps; done
136 cd picons; for i in *.xbm; do echo $$i; xbmtopbm $$i | pnmtops -noturn > ../tmp/picons-`basename $$i .xbm`.ps; done
137 cd picons; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/picons-`basename $$i .gif`.ps; done
138 for i in tmp/picons-*.ps; do echo "\\gnuspicon{$$i}"; done > picons.tex
141 cd xface; for i in *.gif; do echo $$i; giftopnm $$i | ppmtopgm | pnmtops -noturn > ../tmp/xface-`basename $$i .gif`.ps; done
142 for i in tmp/xface-*.ps; do \
143 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
144 a="h"; echo -n "\\gnusxface{$$i}"; fi done > xface.tex; \
145 if [ -n "$$a" ]; then echo "{$$i}" >> xface.tex; fi
148 cd smilies; tifftopnm BigFace.tif | ppmtopgm | pnmtops > ../tmp/BigFace.ps
149 cd smilies; for i in *.xpm; do echo $$i; sed "s/none/#FFFFFF/" $$i | xpmtoppm | ppmtopgm | pnmdepth 255 | pnmtops > ../tmp/smiley-`basename $$i .xpm`.ps; done
150 for i in tmp/smiley-*.ps; do \
151 if [ -n "$$a" ]; then a=""; echo "{$$i}"; else \
152 a="h"; echo -n "\\gnussmiley{$$i}"; fi done > smiley.tex; \
153 if [ -n "$$a" ]; then echo "{$$i}" >> smiley.tex; fi
156 tar czvf pspackage.tar.gz gnus-faq.texi gnus.texi herds misc pagestyle.sty picons pixidx.sty postamble.tex ps screen smilies splitindex texi2latex.el xface Makefile README etc