aboutsummaryrefslogtreecommitdiffstats
path: root/w3m-doc/mkdocs
diff options
context:
space:
mode:
authorAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
committerAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
commit68a07bf03b7624c9924065cce9ffa45497225834 (patch)
treec2adb06a909a8594445e4a3f8587c4bad46e3ecd /w3m-doc/mkdocs
downloadw3m-68a07bf03b7624c9924065cce9ffa45497225834.tar.gz
w3m-68a07bf03b7624c9924065cce9ffa45497225834.zip
Initial revision
Diffstat (limited to '')
-rwxr-xr-xw3m-doc/mkdocs32
1 files changed, 32 insertions, 0 deletions
diff --git a/w3m-doc/mkdocs b/w3m-doc/mkdocs
new file mode 100755
index 0000000..72c7b53
--- /dev/null
+++ b/w3m-doc/mkdocs
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+W3MDOC="./w3mdoc.pl"
+W3M="$HOME/bin/pre_w3m"
+#W3M="w3m"
+
+NKF="/usr/local/bin/nkf"
+SED="/usr/bin/sed"
+TR="/usr/bin/tr"
+
+HTML_JP_DIR="html-jp"
+DOC_JP_DIR="doc-jp"
+#HTML_DIR="html"
+#DOC_DIR="doc"
+
+if [ ! -d ${HTML_JP_DIR} ]; then
+ mkdir ${HTML_JP_DIR}
+fi
+if [ ! -d ${DOC_JP_DIR} ]; then
+ mkdir ${DOC_JP_DIR}
+fi
+
+for SRC in *.in
+do
+ HTML=`echo ${SRC} | ${SED} 's/\.in$//p'`
+ DOC=`echo ${HTML} | ${SED} 's/\.html$//p' | ${TR} '[a-z]' '[A-Z]'`
+ echo "converting ${SRC} to ${HTML_JP_DIR}/${HTML} ... \c"
+ ${NKF} -e ${SRC} | ${SED} -e 's/¡£/¡¥/gp' -e 's/¡¢/¡¤/gp' | ${NKF} -j | ${W3MDOC} > ${HTML_JP_DIR}/${HTML}
+ echo "done.\nconverting ${HTML} to ${DOC_JP_DIR}/${DOC} ... \c"
+ ${W3M} -dump -e ${HTML_JP_DIR}/${HTML} > ${DOC_JP_DIR}/${DOC}
+ echo "done."
+done