data/m17n-config.txt data/m17n-db.txt data/exprog.txt \
data/dbformat.txt data/dbdata.txt data/dbtutorial.txt fdl.txt
-DBDATA = $(shell echo @M17NDB@/*.{dir,fst,tbl} @M17NDB@/MIM/*.mim @M17NDB@/FLT/*.flt @M17NDB@/LANGDATA/LANGUAGE.tbl)
-DBIMAGE = $(shell echo images/*.png images/*.eps)
+DBDATA = $(shell ls @M17NDB@/*.{dir,fst,tbl} @M17NDB@/MIM/*.mim @M17NDB@/FLT/*.flt @M17NDB@/LANGDATA/LANGUAGE.tbl)
+DBIMAGE = $(shell ls images/*.png images/*.eps)
HTML_USR_TARGET = usr/html/index.html usr/html/parrot.png
HTML_JA_TARGET = ja/html/index.html ja/html/parrot.png
-e '/^OUTPUT_DIRECTORY / s/=.*/= %USR_JA_DEV%/' \
-e '/^OUTPUT_LANGUAGE / s/=.*/= %OUTPUT_LANGUAGE%/' \
-e '/^OPTIMIZE_OUTPUT_FOR_C / s/=.*/= YES/' \
- -e '/^EXTRAXT_ALL / s/=.*/= YES/' \
+ -e '/^EXTRACT_ALL / s/=.*/= NO/' \
-e '/^SHOW_INCLUDE_FILES / s/=.*/= NO/' \
-e '/^SHOW_MEMBER_DOCS / s/=.*/= NO/' \
-e '/^ENABLED_SECTIONS / s/=.*/= %ENABLED_SECTIONS%/' \
-e '/^ALPHABETICAL_INDEX / s/=.*/= YES/' \
-e '/^IGNORE_PREFIX / s/=.*/= m M/' \
-e '/^GENERATE_HTML / s/=.*/= %GENERATE_HTML%/' \
- -e '/^HTML_HEADER / s/=.*/= header.%USR_JA_DEV%.html/' \
-e '/^HTML_FOOTER / s/=.*/= footer.%USR_JA_DEV%.html/' \
- -e '/^DISABLE_INDEX / s/=.*/= YES/' \
+ -e '/^DISABLE_INDEX / s/=.*/= NO/' \
-e '/^ENUM_VALUES_PER_LINE / s/=.*/= 1/' \
-e '/^GENERATE_LATEX / s/=.*/= %GENERATE_LATEX%/' \
-e '/^EXTRA_PACKAGES / s/=.*/= m17n-lib times/' \
rm -f `dirname $@`/*.html
${DOXYGEN} $<
cp images/icon-*.png `dirname $@`
- cd `dirname $@`; rm -f *_8c* *_8h* *_8txt* dirs.html dir_* files.html
+# cd `dirname $@`; rm -f *_8c* *_8h* *_8txt* dirs.html dir_* files.html
echo 'code { font-weight: bold }' >> `dirname $@`/doxygen.css
%/html/parrot.png: parrot.png
${DOXYGEN} doxytemp
rm -rf doxytemp
-man/man1/%: usr/man/man1/% sample/man3/SampleGroup.3 utils/mkman.rb
+man/man1/%: usr/man/man1/% sample/man3/SampleGroup.3 utils/mkman.rb \
+ utils/reform-man.sh
$(mkinstalldirs) man/man1
rm -rf doxywork man/man1/*
ruby utils/mkman.rb 1 usr/man/man1 man/man1
+ utils/reform-man.sh man/man1/*.1
-man/man3/%: usr/man/man3/% sample/man3/SampleGroup.3 utils/mkman.rb \
- utils/reform-man3.sh utils/reform-man3.awk
+man/man3/%: usr/man/man3/% sample/man3/SampleGroup.3 utils/mkman.rb \
+ utils/reform-man.sh
$(mkinstalldirs) man/man3
rm -rf doxywork man/man3/*
ruby utils/mkman.rb 3m17n usr/man/man3m17n man/man3
- utils/reform-man3.sh man/man3
+ utils/reform-man.sh man/man3/*.3m17n
-man/man5/%: usr/man/man5/% sample/man3/SampleGroup.3 utils/mkman.rb
+man/man5/%: usr/man/man5/% sample/man3/SampleGroup.3 utils/mkman.rb \
+ utils/reform-man.sh
$(mkinstalldirs) man/man5
rm -rf doxywork man/man5/*
ruby utils/mkman.rb 5 usr/man/man5 man/man5
+ utils/reform-man.sh man/man5/*.5
man/ja/man1/%: ja/man/man1/% sample/man3/SampleGroup.3 utils/mkman.rb
$(mkinstalldirs) man/ja/man1
rm -rf doxywork man/ja/man5/*
ruby utils/mkman.rb 5 ja/man/man5 man/ja/man5
-CLEANFILES=doxyfile-* ${TARGET} *.tar.gz warning *~
+CLEANFILES=doxyfile* ${TARGET} *.tar.gz warning *~
clean-local:
rm -rf usr dev ja man doxywork
# Process this file with autoconf to produce a configure script.
AC_INIT(m17n-docs, 1.5.2, bugs-m17n-lib@m17n.org)
-AM_INIT_AUTOMAKE(m17n-docs, 1.5.2)
+AM_INIT_AUTOMAKE([-Wno-portability])
AM_MAINTAINER_MODE
<!-- Copyright information
-Copyright (C) 2003
+Copyright (C) 2001 Information-technology Promotion Agency (IPA)
+Copyright (C) 2001-2004
National Institute of Advanced Industrial Science and Technology (AIST)
- Registration Number H15PRO112
-This file is part of the m17n library.
+This file is part of the m17n library documentation.
-The m17n library is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License as
-published by the Free Software Foundation; either version 2, or (at
-your option) any later version.
-
-The m17n library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with the m17n library; see the file COPYING. If not, write to
-the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.2 or
+any later version published by the Free Software Foundation; with no
+Invariant Section, no Front-Cover Texts,
+and no Back-Cover Texts. A copy of the license is included in the
+appendix entitled "GNU Free Documentation License".
-->
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
-Invariant Section, Front-Cover Texts "The m17n library documentation",
+Invariant Section, no Front-Cover Texts,
and no Back-Cover Texts. A copy of the license is included in the
appendix entitled "GNU Free Documentation License".
-->
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
-Invariant Section, Front-Cover Texts "The m17n library documentation",
-and no Back-Cover Texts. A copy of the license is included in the
-appendix entitled "GNU Free Documentation License".
+Invariant Section, no Front-Cover Texts, and no Back-Cover Texts. A
+copy of the license is included in the appendix entitled "GNU Free
+Documentation License".
+
@endhtmlonly
*/
.\" Permission is granted to copy, distribute and/or modify this document
.\" under the terms of the GNU Free Documentation License, Version 1.2 or
.\" any later version published by the Free Software Foundation; with no
-.\" Invariant Section, Front-Cover Texts "The m17n library documentation",
+.\" Invariant Section, no Front-Cover Texts,
.\" and no Back-Cover Texts. A copy of the license is included in the
.\" appendix entitled "GNU Free Documentation License".
IMDOC=`pwd`/utils/imdoc
set `ls $1/$2`
-FILE=$1
-while shift 1; do
+while [ $# -ge 1 ] ; do
+ FILE=$1
IM=`grep '^(input-method' $FILE`
if test -n "$IM"; then
if grep -q '^;;;' $FILE; then
echo
sed -n -e '/^;;;/ p' $FILE | sed -e '/^[^;]/ s/$/<br>/' -e '/^;;;/ s/^;;; *//'
fi
- FILE=$1
+ shift
done
NULL, NULL, NULL);
char *base;
char cmd[1024];
+ int result;
base = basename (strdup (iconfile));
sprintf (cmd, "convert -resize 50%% %s images/icon-%s",
iconfile, base);
- system (cmd);
+ result = system (cmd);
+ if (result != 0)
+ {
+ fprintf (stderr, "Command fail: %s", cmd);
+ exit (1);
+ }
printf (" icon:<img src=\"icon-%s\" border=\"1\" style=\"vertical-align:middle;\">\n", base);
}
else
< refman.tex > ${SOURCE}.tex
else
SOURCE=m17n-lib
- echo '\appendix' > app.tex
+ echo '\\appendix' > app.tex
sed -n -e '/Print compile/,/GFDL/ p' < refman.tex >> app.tex
sed -e '/documentclass/ s/a4paper/a4paper,twoside/' \
-e '/Print compile/,/GFDL/ d' \
commentblock(buf)
buf = []
+ when /\/\* @[{}] \*\// # /* comment */ type comment
+ commentblock(buf)
+ buf = []
+ print($_)
+
when /^\/\*\s.*\*\// # /* comment */ type comment
# if doxy == 1
# # should be included only in the example code