source: scripts/untested/blfs-scripts/blfs-jadetex.sh@ 60454e2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 60454e2 was 60454e2, checked in by Jim Gifford <clfs@…>, 19 years ago

r604@server (orig r602): ryan | 2005-08-05 23:26:56 -0700
Ensure output goes to log files


  • Property mode set to 100755
File size: 2.7 KB
Line 
1#!/bin/bash
2
3### jadetex ###
4
5cd ${SRC}
6LOG=jadetex-blfs.log
7
8unpack_tarball jadetex-${JADETEX_VER}
9cd ${PKGDIR}
10
11max_log_init jadetex ${JADETEX_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
12(
13sed -i.orig -e "s/original texmf.cnf/modified texmf.cnf/" \
14 -e "s/memory hog.../&\npool_size.context = 750000/" \
15 $(kpsewhich texmf.cnf)
16cat >> $(kpsewhich texmf.cnf) << "EOF"
17
18% The following 3 sections added for JadeTeX
19
20% latex settings
21main_memory.latex = 1100000
22param_size.latex = 1500
23stack_size.latex = 1500
24hash_extra.latex = 15000
25string_vacancies.latex = 45000
26pool_free.latex = 47500
27nest_size.latex = 500
28save_size.latex = 5000
29pool_size.latex = 500000
30max_strings.latex = 55000
31font_mem_size.latex= 400000
32
33% jadetex settings
34main_memory.jadetex = 1500000
35param_size.jadetex = 1500
36stack_size.jadetex = 1500
37hash_extra.jadetex = 50000
38string_vacancies.jadetex = 45000
39pool_free.jadetex = 47500
40nest_size.jadetex = 500
41save_size.jadetex = 5000
42pool_size.jadetex = 500000
43max_strings.jadetex = 55000
44
45% pdfjadetex settings
46main_memory.pdfjadetex = 2500000
47param_size.pdfjadetex = 1500
48stack_size.pdfjadetex = 1500
49hash_extra.pdfjadetex = 50000
50string_vacancies.pdfjadetex = 45000
51pool_free.pdfjadetex = 47500
52nest_size.pdfjadetex = 500
53save_size.pdfjadetex = 5000
54pool_size.pdfjadetex = 500000
55max_strings.pdfjadetex = 55000
56
57EOF
58
59LATEX_FMT_DIR="$(kpsewhich -expand-var '$TEXMFSYSVAR')/web2c" &&
60mv -v $(kpsewhich latex.fmt) $(kpsewhich latex.fmt).orig &&
61mv -v ${LATEX_FMT_DIR}/latex.log ${LATEX_FMT_DIR}/latex.log.orig &&
62fmtutil-sys --byfmt latex
63) >> ${LOGFILE} 2>&1 &&
64echo " o Configure OK" || barf
65
66min_log_init ${BUILDLOGS} &&
67make \
68 >> ${LOGFILE} 2>&1 &&
69echo " o Build OK" || barf
70
71min_log_init ${INSTLOGS} &&
72(
73install -v -m755 -d \
74 $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config &&
75install -v -m644 dsssl.def jadetex.ltx \
76 $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex &&
77install -v -m644 {,pdf}jadetex.ini \
78 $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config &&
79FMTUTIL_CNF="$(kpsewhich fmtutil.cnf)" &&
80mv ${FMTUTIL_CNF} ${FMTUTIL_CNF}.orig &&
81
82cat ${FMTUTIL_CNF}.orig - >> ${FMTUTIL_CNF} << "EOF"
83
84# JadeTeX formats:
85jadetex etex - "&latex" jadetex.ini
86pdfjadetex pdfetex - "&pdflatex" pdfjadetex.ini
87
88EOF
89mv -v $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R \
90 $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R.orig &&
91mv -v $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R \
92 $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R.orig &&
93
94mktexlsr &&
95fmtutil-sys --byfmt jadetex &&
96fmtutil-sys --byfmt pdfjadetex &&
97mktexlsr &&
98ln -v -sf etex /usr/bin/jadetex &&
99ln -v -sf pdfetex /usr/bin/pdfjadetex
100) >> ${LOGFILE} 2>&1 &&
101echo " o Install OK" || barf
102
Note: See TracBrowser for help on using the repository browser.