Revision 5248, 10.3 KB checked in by munepi, 13 years ago (diff) |
---|
diff -up texlive-2011/tl11/common.sh.vine texlive-2011/tl11/common.sh
old | new | |
---|---|---|
7 | 7 | TLSRCDIR=/opt/home-supp/tl11 |
8 | 8 | |
9 | 9 | # temporaly working directory |
10 | TMPDIR= |
|
10 | TMPDIR=$(dirname ${TLSRCDIR})/build | |
11 | 11 | #TMPDIR=/var/tmp |
12 | 12 | |
13 | 13 | # the place of installed TeX Live |
14 | TLINSTDIR=/ |
|
14 | TLINSTDIR=/usr/share/texlive-sources | |
15 | 15 | #TLINSTDIR=/mnt/cd0a |
16 | 16 | |
17 | 17 | # install directory |
18 | PREFIX= |
|
18 | PREFIX=$(dirname ${TLSRCDIR})/work | |
19 | 19 | |
20 | 20 | # toolkit for [p]xdvi |
21 | ||
22 | ||
21 | TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=motif | |
22 | #TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=xaw | |
23 | 23 | |
24 | TL_MAKE_FLAGS=-j |
|
24 | TL_MAKE_FLAGS=-j$(/usr/bin/getconf _NPROCESSORS_ONLN) | |
25 | 25 | |
26 | 26 | TL_CONFIGURE_ARGS= |
27 | ## The following args are for generating binaries for tlptexlive | |
28 | #TL_CONFIGURE_ARGS="--disable-all-pkgs --enable-web2c \ | |
29 | # --disable-xdvipdfmx --disable-xetex \ | |
30 | # --enable-web-progs --enable-dvipdfmx --enable-mendexk \ | |
31 | # --enable-makejvf --enable-pxdvik --enable-dvipsk \ | |
32 | # --enable-tetex --enable-texlive " | |
27 | ## The following args are for generating binaries for Vine Linux | |
28 | TL_CONFIGURE_ARGS=" \ | |
29 | --enable-shared --disable-static \ | |
30 | --enable-compiler-warnings=max \ | |
31 | --without-cxx-runtime-hack \ | |
32 | \ | |
33 | --enable-web2c \ | |
34 | --enable-web-progs --enable-dvipdfmx --enable-mendexk \ | |
35 | --enable-makejvf --enable-pxdvik --enable-dvipsk \ | |
36 | --enable-tetex --enable-texlive \ | |
37 | \ | |
38 | --with-system-xpdf \ | |
39 | --with-system-gd \ | |
40 | --with-system-t1lib \ | |
41 | --with-system-libpng \ | |
42 | --with-system-zlib \ | |
43 | --with-system-freetype2 --with-freetype2-include=`freetype-config --cflags | sed -e 's/-I//' -e 's/ .*//'` \ | |
44 | --with-pic \ | |
45 | --with-xdvi-x-toolkit=motif \ | |
46 | \ | |
47 | --disable-xindy --disable-xindy-docs --disable-xindy-make-rules \ | |
48 | --disable-dvi2tty \ | |
49 | --disable-t1utils --disable-psutils --disable-detex \ | |
50 | --disable-dvipng --disable-lcdf-typetools \ | |
51 | " | |
33 | 52 | |
34 | 53 | # for Ubuntu? |
35 | 54 | # CONFIG_SHELL=$BASH |
… | … | TL_CONFIGURE_ARGS= |
38 | 57 | # -------------------------------- |
39 | 58 | unset TEXINPUTS |
40 | 59 | unset PTEX_KANJI_ENC |
60 | [ -d $TMPDIR ] || mkdir -p $TMPDIR | |
41 | 61 | TLV=`basename $TLSRCDIR/texlive-*-source.tar.xz |sed "s/texlive-\(........\).*/\1/"` |
42 | 62 | SRCDIR=$TMPDIR/texlive-$TLV-source |
43 | 63 | echo -e "\e[0;32m *** TeX Live source: texlive-$TLV-source.tar.xz ***\e[0m" |
44 | ||
64 | ##ARCH=`ls $SRCDIR/inst/bin/ 2> /dev/null` | |
45 | 65 | PTEX_IN_FILTER=no |
46 | 66 | TEXMF=$SRCDIR/inst/texmf |
47 | 67 | XMAP=$TEXMF/fonts/map/dvipdfmx |
48 | 68 | export TEXMFMAIN=$TEXMF |
49 | 69 | export ORIGPATH=$PATH |
50 | export PATH=$SRCDIR/inst/bin |
|
70 | export PATH=$SRCDIR/inst/bin:$PATH | |
51 | 71 | export TL_CONF_XDVI_TOOLKIT TL_CONFIGURE_ARGS TL_MAKE_FLAGS |
52 | 72 | |
53 | 73 | sedwrite(){ |
Diff finished. Wed Nov 23 16:32:14 2011 diff -up texlive-2011/tl11/scripts/texmf.sh.vine texlive-2011/tl11/scripts/texmf.sh
old | new | |
---|---|---|
1 | #!/bin/bash |
|
1 | #!/bin/bash -x | |
2 | 2 | |
3 | 3 | . ./common.sh $* |
4 | 4 | |
… | … | mv sample.* ../../../doc/platex/japanese |
29 | 29 | mv README ../../../doc/platex/japanese/ |
30 | 30 | cd ../../../.. |
31 | 31 | |
32 | # |
|
33 | ||
34 | # |
|
35 | # |
|
36 | # |
|
37 | ||
38 | ||
39 | # |
|
40 | # |
|
41 | # |
|
42 | ||
43 | ||
44 | # |
|
45 | # |
|
46 | # |
|
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
32 | # # otf package | |
33 | # tarz $TLSRCDIR/ptex/otfbeta.zip | |
34 | # #if [ "$FLG_UP" = "TRUE" ] ;then | |
35 | # # tar zxf $TLSRCDIR/uptex/otfstable-uptex-0.05.tar.gz | |
36 | # #fi | |
37 | # cd otfbeta | |
38 | # sedwrite mkjvf "s/ovp2ovf/wovp2ovf/" && chmod +x mkjvf | |
39 | # #if [ "$FLG_UP" = "TRUE" ] ;then | |
40 | # # sedwrite umkjvf "s/'ovp2ovf/'wovp2ovf/" && chmod +x umkjvf | |
41 | # #fi | |
42 | # for x in script/*.pl; do sedwrite $x "s/ovp2ovf/wovp2ovf/"; chmod +x $x; done | |
43 | # ./makeotf | |
44 | # #if [ "$FLG_UP" = "TRUE" ] ;then | |
45 | # # ./umakeotf | |
46 | # #fi | |
47 | # mkdir -p ../texmf/fonts/tfm/otf && cp tfm/*.tfm ../texmf/fonts/tfm/otf/ | |
48 | # mkdir -p ../texmf/fonts/vf/otf && cp vf/*.vf ../texmf/fonts/vf/otf/ | |
49 | # mkdir -p ../texmf/tex/latex/otf && cp sty/* ../texmf/tex/latex/otf | |
50 | # cd .. | |
51 | # rm -rf otfbeta | |
52 | 52 | fi |
53 | 53 | |
54 | 54 | echo -e "\e[0;33m[rewriting] \e[0m updmap.cfg" |
… | … | echo "KanjiMap otf-cktx.map" >> texmf/we |
56 | 56 | (cd $XMAP && tarz $TLSRCDIR/ptex/ptexlive-maps-????????.tar.xz) |
57 | 57 | |
58 | 58 | # xdvi |
59 | if [ -f bin/ |
|
59 | if [ -f bin/pxdvi ]; then | |
60 | 60 | cp ../texk/pxdvik/texmf/XDvi texmf/xdvi/XDvi |
61 | 61 | cp ../texk/pxdvik/texmf/pxdvi.cfg texmf/xdvi/pxdvi.cfg |
62 | 62 | cp $TLSRCDIR/xdvi-ptex.map.sample texmf/xdvi/ |
Diff finished. Sat Nov 26 15:34:13 2011 diff -up texlive-2011/tl11/scripts/build.sh.vine texlive-2011/tl11/scripts/build.sh
old | new | if [ "$FLG_RP" = "TRUE" ] ;then |
---|---|---|
7 | 7 | zpatch 0 $TLSRCDIR/reautoconf-parallel.diff |
8 | 8 | fi |
9 | 9 | ./reautoconf || exit 1 # ここで時間がかかる |
10 | TL_MAKE=$MAKE ./Build --enable-multiplatform --disable-native-texlive-build || exit 1 | |
10 | ##TL_MAKE=$MAKE ./Build --enable-multiplatform --disable-native-texlive-build || exit 1 | |
11 | TL_MAKE=$MAKE ./Build --disable-multiplatform --disable-native-texlive-build || exit 1 | |
11 | 12 | |
13 | exit 0 | |
14 | ## We run the following processes as scripts/build-post.sh. | |
12 | 15 | # |
13 | 16 | . $TLSRCDIR/common.sh $* |
14 | 17 |
Diff finished. Wed Nov 23 19:09:01 2011 diff -up /dev/null texlive-2011/tl11/scripts/build-post.sh
- | + | |
---|---|---|
1 | #!/bin/bash | |
2 | ||
3 | . ./common.sh $* | |
4 | ||
5 | cd $SRCDIR/inst | |
6 | cp -r texmf texmf.orig | |
7 | cp -r $TLINSTDIR/texmf . | |
8 | cp -r ../texk/tetex/updmap.pl texmf/scripts/tetex/ | |
9 | cp texmf.orig/web2c/fmtutil.cnf texmf/web2c/fmtutil.cnf | |
10 | cp texmf.orig/web2c/texmf.cnf texmf/web2c/texmf.cnf | |
11 | rm -rf texmf.orig | |
12 | ||
13 | # if [ "$FLG_UP" = "TRUE" ] ;then | |
14 | # cd texmf | |
15 | # zpatch 0 $TLSRCDIR/uptex/uptex-*-texmf-texlive2010.diff | |
16 | # tarz $TLSRCDIR/uptex_font-*.tar.gz | |
17 | # cd fonts/uptex_min/pl | |
18 | # echo -e "\e[0;33m[building] \e[0m umin7.tfm etc." | |
19 | # $MAKE pl5 tfm5 vf5 &>/dev/null || exit 1 | |
20 | # cp u*.tfm ../../tfm/uptex/ | |
21 | # cp u*.vf ../../vf/uptex/ | |
22 | # cd ../../.. | |
23 | # rm -rf fonts/uptex_jis fonts/uptex_upjis fonts/uptex_map fonts/uptex_min | |
24 | # cd .. | |
25 | # fi | |
26 | ||
27 | # map for dvipdfmx | |
28 | sedwrite texmf/dvipdfmx/dvipdfmx.cfg "s/cid-x.map/kanjix.map/" | |
29 | echo -e "\e[0;33m[rewriting] \e[0m updmap.cfg" | |
30 | cat <<EOF >> texmf/web2c/updmap.cfg || exit | |
31 | # | |
32 | # map for pTeX | |
33 | KanjiMap morisawa.map | |
34 | EOF | |
35 | ||
36 | ||
37 | ln -s $TLINSTDIR/tlpkg tlpkg | |
38 | ||
39 | exit 0 | |
40 | ||
41 | ||
42 | ###### | |
43 | if [ "$FLG_UP" = "TRUE" ] ;then | |
44 | echo -e "\e[0;33m[rewriting] \e[0m updmap.cfg" | |
45 | echo "KanjiMap uptex-ckt.map" >> texmf/web2c/updmap.cfg || exit | |
46 | echo -e "\e[0;33m[writing] \e[0m uptex-ckt.map" | |
47 | cat <<EOF > $XMAP/uptex-ckt.map | |
48 | %% | |
49 | %% Chinese/Korean fonts for upTeX | |
50 | %% | |
51 | upstsl-h UniGB-UTF16-H !STSong-Light | |
52 | upstsl-v UniGB-UTF16-V !STSong-Light | |
53 | upstht-h UniGB-UTF16-H !STHeiti-Regular | |
54 | upstht-v UniGB-UTF16-V !STHeiti-Regular | |
55 | upmsl-h UniCNS-UTF16-H !MSung-Light | |
56 | upmsl-v UniCNS-UTF16-V !MSung-Light | |
57 | upmhm-h UniCNS-UTF16-H !MHei-Medium | |
58 | upmhm-v UniCNS-UTF16-V !MHei-Medium | |
59 | uphysmjm-h UniKS-UTF16-H !HYSMyeongJo-Medium | |
60 | uphysmjm-v UniKS-UTF16-V !HYSMyeongJo-Medium | |
61 | uphygt-h UniKS-UTF16-H !HYGoThic-Medium | |
62 | uphygt-v UniKS-UTF16-V !HYGoThic-Medium | |
63 | EOF | |
64 | cp $TLSRCDIR/uptex/convbkmk.rb $SRCDIR/inst/bin/$ARCH/ | |
65 | fi |
Diff finished. Wed Nov 23 19:10:58 2011 diff -up texlive-2011/tl11/scripts/build-post.sh.vine texlive-2011/tl11/scripts/build-post.sh
old | new | |
---|---|---|
1 | #!/bin/bash |
|
1 | #!/bin/bash -x | |
2 | 2 | |
3 | 3 | . ./common.sh $* |
4 | 4 | |
5 | 5 | cd $SRCDIR/inst |
6 | cp -r texmf texmf.orig | |
7 | cp -r $TLINSTDIR/texmf . | |
8 | cp -r ../texk/tetex/updmap.pl texmf/scripts/tetex/ | |
9 | cp texmf.orig/web2c/fmtutil.cnf texmf/web2c/fmtutil.cnf | |
10 | cp texmf.orig/web2c/texmf.cnf texmf/web2c/texmf.cnf | |
11 | rm -rf texmf.orig | |
6 | [ -d texmf ] && tar cpf texmf-orig.tar texmf && mv texmf texmf.orig || exit 1 | |
7 | [ -d $TLINSTDIR/texmf ] && cp -far $TLINSTDIR/texmf . || exit 1 | |
8 | ## cp -r ../texk/tetex/updmap.pl texmf/scripts/tetex/ | |
9 | ## cp texmf.orig/web2c/fmtutil.cnf texmf/web2c/fmtutil.cnf | |
10 | ## cp texmf.orig/web2c/texmf.cnf texmf/web2c/texmf.cnf | |
11 | [ -d texmf -a -d texmf.orig -a -f texmf-orig.tar ] && tar xpf texmf-orig.tar && rm -f texmf-orig.tar || exit 1 | |
12 | ## rm -rf texmf.orig | |
12 | 13 | |
13 | 14 | # if [ "$FLG_UP" = "TRUE" ] ;then |
14 | 15 | # cd texmf |
… | … | KanjiMap morisawa.map |
34 | 35 | EOF |
35 | 36 | |
36 | 37 | |
37 | ln -s $TLINSTDIR/tlpkg tlpkg | |
38 | ## ln -s $TLINSTDIR/tlpkg tlpkg | |
39 | cp -ra $TLINSTDIR/tlpkg tlpkg || exit 1 | |
38 | 40 | |
39 | 41 | exit 0 |
40 | 42 | |
… | … | uphysmjm-v UniKS-UTF16-V |
61 | 63 | uphygt-h UniKS-UTF16-H !HYGoThic-Medium |
62 | 64 | uphygt-v UniKS-UTF16-V !HYGoThic-Medium |
63 | 65 | EOF |
64 | cp $TLSRCDIR/uptex/convbkmk.rb $SRCDIR/inst/bin/ |
|
66 | cp $TLSRCDIR/uptex/convbkmk.rb $SRCDIR/inst/bin/ | |
65 | 67 | fi |
Diff finished. Wed Nov 23 19:13:53 2011 diff -up texlive-2011/tl11/scripts/install.sh.vine texlive-2011/tl11/scripts/install.sh
old | new | cat <<EOF |
---|---|---|
30 | 30 | Installation is finished. |
31 | 31 | Please set \$PATH: |
32 | 32 | |
33 | (sh/bash user): export PATH=$PREFIX/bin |
|
34 | (csh/tcsh user): setenv PATH $PREFIX/bin |
|
33 | (sh/bash user): export PATH=$PREFIX/bin:\$PATH | |
34 | (csh/tcsh user): setenv PATH $PREFIX/bin:\$PATH | |
35 | 35 | EOF |
36 | 36 | |
37 | 37 | exit 0 |