+if [ $USR_JA_DEV = "ja" ] ; then
+ LATEX=platex
+ if [ -d /usr/local/teTeX/bin ] ; then
+ PATH=/usr/local/teTeX/bin:$PATH
+ fi
+ 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