## Process this file with Automake to create Makefile.in
+SUBDIRS = utils
+
pkgdata_DATA = \
usr/html/index.html \
usr/latex/m17n-lib.dvi usr/latex/m17n-lib.ps \
data/exprog.txt: ${EXAMPLE_PROGS} utils/exprog.sh
utils/exprog.sh ${EXAMPLE_PROGS} > $@
-data/dbdata.txt: ${DBDATA} ${DBIMAGE} @M17NDB@/mdb.dir utils/dbdata.awk utils/dbdata.sh
+data/dbdata.txt: ${DBDATA} ${DBIMAGE} @M17NDB@/mdb.dir utils/dbdata.awk utils/dbdata.sh utils/imdoc.c
+ (cd utils; make)
@AWK@ -f utils/dbdata.awk @M17NDB@/mdb.dir > $@
data/dbformat.txt: ${DBFORMAT} utils/dbformat.sh
cd `dirname $@`; rm -f *_8c* *_8h* *_8txt* dirs.tex dir_* files.tex
%/latex/m17n-lib.dvi: %/latex/refman.tex styles/m17n-lib.sty utils/latex.sh
- utils/latex.sh `dirname $@` latex
+ -utils/latex.sh `dirname $@` latex
%/latex/m17n-lib.ps: %/latex/m17n-lib.dvi utils/dvips.sh
utils/dvips.sh `dirname $@` dvips
# Process this file with autoconf to produce a configure script.
-AC_INIT(m17n-docs, 1.3.0, bugs-m17n-lib@m17n.org)
-AM_INIT_AUTOMAKE(m17n-docs, 1.3.0)
+AC_INIT(m17n-docs, 1.3.4, bugs-m17n-lib@m17n.org)
+AM_INIT_AUTOMAKE(m17n-docs, 1.3.4)
AM_MAINTAINER_MODE
# Checks for programs.
+AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_AWK
fi
AC_SUBST(M17NDB)
+PKG_CHECK_MODULES(M17N, m17n-shell)
+AC_SUBST(M17N_CFLAGS)
+AC_SUBST(M17N_LIBS)
+
AC_CHECK_PROG(HAVEDOXYGEN, doxygen, yes, no)
AC_CHECK_PROG(RUBY, ruby, yes, no)
AC_CHECK_PROG(LATEX, latex, yes, no)
fi
-AC_CONFIG_FILES(Makefile)
+AC_CONFIG_FILES([Makefile utils/Makefile])
AC_OUTPUT
# Print configuration message.
#!/bin/sh
+IMDOC=`pwd`/utils/imdoc
+
cd $1
set `ls $2`
FILE=$1
while shift 1; do
- sed -n -e '/^(input-method/s/(input-method \([^ ]*\) \([^ )]*\)\( \([^)]*\)\)*)/\1 \2 \4/p' $FILE | (read LANG NAME EXTRA
- if test -z "NAME"; then
- NAME=$EXTRA
- fi
- if test "$LANG" = "t"; then
- LANG=generic
- fi
- if test "$NAME" = "nil"; then
- echo "<li> $FILE (extra-name:$EXTRA, only for inclusion)"
+ IM=`grep '^(input-method' $FILE`
+ if test -n "$IM"; then
+ sed -n -e '/^(input-method/s/(input-method \([^ ]*\) \([^ )]*\)\( \([^)]*\)\)*)/\1 \2 \4/p' $FILE | (read LANG NAME EXTRA
+ if test -z "NAME"; then
+ NAME=$EXTRA
+ fi
+ if test "$LANG" = "t"; then
+ LANG=generic
+ fi
+ if test "$NAME" = "nil"; then
+ echo "<li> $FILE (extra-name:$EXTRA, only for inclusion)"
+ else
+ echo "<li> $FILE (language:$LANG name:$NAME)"
+ fi)
+ if grep -q '^;;;' $FILE; then
+ sed -n -e '/^;;;/ p' $FILE | sed -e '/^[^;]/ s/$/<br>/' -e '/^;;;/ s/^;;; *//' | sed -e 's,^||,<tr><td align="center">,' -e 's,||$,</td></tr>,' -e 's,|,</td><td align="center">,g'
else
- echo "<li> $FILE (language:$LANG name:$NAME)"
+ $IMDOC $FILE "$IM"
fi
- )
- echo
- sed -n -e '/^;;;/ p' -e '/^(description "/,/^")/ s/^(description "\|^")\|\\\|$//gp' $FILE | sed -e '/^[^;]/ s/$/<br>/' -e '/^;;;/ s/^;;; *//'
+ else
+ echo
+ sed -n -e '/^;;;/ p' $FILE | sed -e '/^[^;]/ s/$/<br>/' -e '/^;;;/ s/^;;; *//'
+ fi
FILE=$1
done
printf ("<li> %s (extra-name:%s, only for inclusion)\n", file, argv[4]);
#endif
printf ("@verbatim\n");
- mconv_encode_stream (msymbol ("euc-jp"), mt, stdout);
+ mconv_encode_stream (msymbol ("utf-8"), mt, stdout);
printf ("\n@endverbatim\n");
M17N_FINI ();