pkgdatadir = $(datadir)/m17n/docs
EXTRA_DIST = usr/html usr/latex/m17n-lib.dvi usr/latex/m17n-lib.ps \
- man/man1 man/man3 man/man5
+ man/man1 man/man3 man/man5 \
+ ja/html ja/latex/m17n-lib-ja.dvi ja/latex/m17n-lib-ja.ps
install-pkgdataDATA: $(pkgdata_DATA)
$(mkinstalldirs) $(pkgdatadir)/html
cd usr/html; for f in *; do \
case $$f in *8c*);; *8h*);; *8txt*);; *) cp $$f ${WEBDIR}/m17n-docs;; esac; \
done
+ [ -d ${WEBDIR}-ja/m17n-docs ] || mkdir ${WEBDIR}-ja/m17n-docs
+ cd ja/html; for f in *; do \
+ case $$f in *8c*);; *8h*);; *8txt*);; *) cp $$f ${WEBDIR}-ja/m17n-docs;; esac; \
+ done
cp ${distdir}.tar.gz ${WEBDIR}/download
-This directory tree holds version 1.0 of the m17n library documentation.
-Copyright (C) 2003
+This directory tree holds version 1.1 of the m17n library documentation.
+Copyright (C) 2003, 2004
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H15PRO112
See the end for copying conditions.
--datadir=DIR
--mandir=DIR
+Note: Although this package contains Japanese translation of HTML and
+LaTeX files, they are not installed by the above procedure. Please
+install the following files manually if you need them:
+ ja/html/*.html
+ ja/latex/m17n-lib-ja.dvi
+ ja/latex/m17n-lib-ja.ps
+
See the file INSTALL for more detail.
----------------------------------------------------------------------
Copyright information
-Copyright (C) 2003
+Copyright (C) 2003, 2004
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H15PRO112
umask 002
USR_JA_DEV=`dirname $1`
+if [ $USR_JA_DEV = "ja" ] ; then
+ SOURCE=m17n-lib-ja
+elif [ $USR_JA_DEV = "dev" ] ; then
+ SOURCE=m17n-lib-dev
+else
+ SOURCE=m17n-lib
+fi
export TEXINPUTS
cd $1
DVIPS=$2
-${DVIPS} -o m17n-lib.ps m17n-lib.dvi
+${DVIPS} -o ${SOURCE}.ps ${SOURCE}.dvi
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
+ < 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 '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
+ < 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