LATEX=$2
if [ $USR_JA_DEV = "ja" ] ; then
LATEX=platex
+ SOURCE=m17n-lib-ja
sed -e '/documentclass/ s/a4paper/a4paper,twoside/' \
- -e '/M17N ¥é¥¤¥Ö¥é¥ê ¥â¥¸¥å¡¼¥ëº÷°ú/,/pages/ d' \
- -e '/M17N ¥é¥¤¥Ö¥é¥ê ¥Õ¥¡¥¤¥ë¤Î²òÀâ/,/textprop_8c/ d' \
- -e 's/M17N ¥é¥¤¥Ö¥é¥ê ¥Ú¡¼¥¸¤Î²òÀâ/Appendix/' \
- < refman.tex > m17n-lib.tex
+ -e '/m17n ¥é¥¤¥Ö¥é¥ê ¥â¥¸¥å¡¼¥ëº÷°ú/,/pages/ d' \
+ -e '/m17n ¥é¥¤¥Ö¥é¥ê ¥Õ¥¡¥¤¥ë/,/textprop_8c/ d' \
+ -e '/m17n ¥é¥¤¥Ö¥é¥ê Directory Documentation/,/dir_000001/ d' \
+ -e 's/m17n ¥é¥¤¥Ö¥é¥ê ¥Ú¡¼¥¸/Appendix/' \
+ < refman.tex > ${SOURCE}.tex
+elif [ $USR_JA_DEV = "dev" ] ; then
+ SOURCE=m17n-lib-dev
+ sed -e '/documentclass/ s/a4paper/a4paper,twoside/' \
+ -e '/The m17n Library Module Index/,/pages/ d' \
+ -e '/The m17n Library File Documentation/,/textprop_8c/ d' \
+ -e '/The m17n Library Directory Documentation/,/dir_000001/ d' \
+ -e 's/The m17n Library Page Documentation/Appendix/' \
+ < refman.tex > ${SOURCE}.tex
else
+ SOURCE=m17n-lib
sed -e '/documentclass/ s/a4paper/a4paper,twoside/' \
- -e '/The M17N Library Module Index/,/pages/ d' \
- -e '/The M17N Library File Documentation/,/textprop_8c/ d' \
- -e 's/The M17N Library Page Documentation/Appendix/' \
- < refman.tex > m17n-lib.tex
+ -e '/The m17n Library Module Index/,/pages/ d' \
+ -e '/The m17n Library File Documentation/,/textprop_8c/ d' \
+ -e '/The m17n Library Directory Documentation/,/dir_000001/ d' \
+ -e 's/The m17n Library Page Documentation/Appendix/' \
+ < refman.tex > ${SOURCE}.tex
fi
-${LATEX} m17n-lib.tex
+${LATEX} ${SOURCE}.tex
if [ "${USR_JA_DEV}" = "ja" ] ; then
- nkf -e < m17n-lib.idx > temp.idx; mv temp.idx m17n-lib.idx
+ nkf -e < ${SOURCE}.idx > temp.idx; mv temp.idx ${SOURCE}.idx
fi
-makeindex m17n-lib.idx
-${LATEX} m17n-lib.tex
+makeindex ${SOURCE}.idx
+${LATEX} ${SOURCE}.tex