+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 '/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 '/The m17n Library Directory Documentation/,/dir_000001/ d' \
+ -e 's/The m17n Library Page Documentation/Appendix/' \
+ < refman.tex > ${SOURCE}.tex
+fi
+${LATEX} ${SOURCE}.tex