Annotation of OpenXM_contrib2/windows/help/makehelp2.bat, Revision 1.1
1.1 ! ohara 1: @echo off
! 2:
! 3: set PATH=..;..\..;%PATH%
! 4: set lang=%~1
! 5: set PERL=c:\cygwin\bin\perl
! 6:
! 7: set srcdir1=..\..\..\..\..\OpenXM\src\asir-doc
! 8: set srcdir2=..\..\..\..\..\OpenXM\src\asir-contrib\packages\doc
! 9: set srcdir3=..\..\..\..\..\OpenXM\src\asir-contrib\packages\src
! 10: set srcdir4=..\..\..\..\asir2000\lib
! 11:
! 12: mkdir %lang%
! 13: pushd %lang%
! 14:
! 15: REM case 1: asir 標準マニュアル
! 16:
! 17: mkdir asir\parts\builtin
! 18: pushd asir
! 19:
! 20: for %%i in ( texinfo.tex texinfo.ini txi-ja.tex txi-en.tex ) do (
! 21: nkf32 -e %srcdir1%\%%i > %%i
! 22: )
! 23:
! 24: for %%i in ( man.texi parts\algnum.texi parts\appendix.texi parts\asir.texi parts\builtin.texi parts\debug.texi parts\ff.texi parts\groebner.texi parts\intro.texi parts\process.texi parts\risa.texi parts\type.texi parts\builtin\array.texi parts\builtin\bit.texi parts\builtin\function.texi parts\builtin\io.texi parts\builtin\list.texi parts\builtin\misc.texi parts\builtin\module.texi parts\builtin\num.texi parts\builtin\numeric.texi parts\builtin\poly.texi parts\builtin\string.texi parts\builtin\structure.texi parts\builtin\type.texi parts\builtin\upoly.texi ) do (
! 25: extract_man %lang% %srcdir1%\%%i | nkf32 -e > %%i
! 26: )
! 27:
! 28: %PERL% ../../texi2html -menu -split_node man.texi
! 29: call :html_euc_to_sjis
! 30: popd
! 31:
! 32: gen_hh asir .
! 33: hhc asirhelp.hhp
! 34:
! 35: REM case 2: asir-contrib マニュアル
! 36:
! 37: mkdir cman
! 38: pushd cman
! 39:
! 40: nkf32 -e %srcdir2%\top\cman-%lang%.texi > cman-%lang%.texi
! 41: nkf32 -e %srcdir3%\names.rr > names.rr
! 42:
! 43: for %%i in ( base calculus complex glib graphic hypergeometric intro load matrix misc names number oxrfc100 oxshell poly print series util windows ) do (
! 44: nkf32 -e %srcdir2%\top\%%i.oxw | oxweave C %lang% > %%i.%lang%
! 45: )
! 46:
! 47: for %%i in ( base matrix number poly print util ) do (
! 48: oxweave usage < names.rr | oxgentexi --category %%i --%lang% --upnode %%i --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i > %%i-auto.%lang%
! 49: )
! 50:
! 51: for %%i in ( glib ) do (
! 52: nkf32 -e %srcdir4%\%%i | oxweave usage | oxgentexi --category %%i --%lang% --upnode %%i --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i > %%i-auto.%lang%
! 53: )
! 54:
! 55: for %%i in ( oxshell ) do (
! 56: nkf32 -e %srcdir3%\%%i.rr | oxweave usage | oxgentexi --category %%i --%lang% --upnode %%i --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i > %%i-auto.%lang%
! 57: )
! 58:
! 59: %PERL% ../../texi2html -menu -split_node cman-%lang%.texi
! 60: call :html_euc_to_sjis
! 61: popd
! 62:
! 63: gen_hh cman . %lang%
! 64: hhc cmanhelp.hhp
! 65:
! 66: REM 個別の場合
! 67:
! 68: REM case 3a: *.{oxg,oxw} から生成。
! 69:
! 70: for %%i in ( dsolv gnuplot mathematica ok_diff ok_dmodule phc tigers ) do (
! 71: mkdir %%i
! 72: pushd %%i
! 73: nkf32 -e %srcdir2%\%%i\%%i.oxg | oxweave usage-%lang% | oxgentexi --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i --title "%%i manual" > %%i-%lang%.texi
! 74: nkf32 -e %srcdir2%\%%i\%%i.oxw | oxweave C %lang% > %%i.%lang%
! 75: %PERL% ../../texi2html -menu -split_node %%i-%lang%.texi
! 76: call :html_euc_to_sjis
! 77: popd
! 78: gen_hh %%i . %lang%
! 79: hhc %%ihelp.hhp
! 80: )
! 81:
! 82: REM case 3b: plucker, sm1: *.{oxg,oxw,rr} から生成。
! 83:
! 84: for %%i in ( plucker sm1 ) do (
! 85: mkdir %%i
! 86: pushd %%i
! 87: nkf32 -e %srcdir2%\%%i\%%i.oxg | oxweave usage-%lang% | oxgentexi --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i --title "%%i manual" > %%i-%lang%.texi
! 88: nkf32 -e %srcdir2%\%%i\%%i.oxw | oxweave C %lang% > %%i.%lang%
! 89: nkf32 -e %srcdir3%\%%i.rr | oxweave usage | oxgentexi --category %name% --en --upnode %%i --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i > %%i-auto.%lang%
! 90: %PERL% ../../texi2html -menu -split_node %%i-%lang%.texi
! 91: call :html_euc_to_sjis
! 92: popd
! 93: gen_hh %%i . %lang%
! 94: hhc %%ihelp.hhp
! 95: )
! 96:
! 97: REM case 3c: pfpcoh: *.{oxg,oxw,rr} から生成。
! 98:
! 99: for %%i in ( pfpcoh ) do (
! 100: mkdir %%i
! 101: pushd %%i
! 102: nkf32 -e %srcdir2%\%%i\%%i.oxg | oxweave usage-%lang% | oxgentexi --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i --title "%%i manual" > %%i-%lang%.texi
! 103: nkf32 -e %srcdir2%\%%i\%%i.oxw | oxweave C %lang% > %%i.%lang%
! 104: nkf32 -e %srcdir3%\%%i.rr %srcdir3%\pfphom.rr | oxweave usage | oxgentexi --%lang% --upnode %%i --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i > %%i-auto.%lang%
! 105: %PERL% ../../texi2html -menu -split_node %%i-%lang%.texi
! 106: call :html_euc_to_sjis
! 107: popd
! 108: gen_hh %%i . %lang%
! 109: hhc %%ihelp.hhp
! 110: )
! 111:
! 112: REM case 3d: om: *.{oxg,rr} から生成。
! 113:
! 114: for %%i in ( om ) do (
! 115: mkdir %%i
! 116: pushd %%i
! 117: nkf32 -e %srcdir2%\%%i\%%i.oxg | oxweave usage-%lang% | oxgentexi --noSorting --author "OpenXM.org" --infoName asir-contrib-%%i --title "%%i manual" > %%i-%lang%.texi
! 118: echo /*^&%lang% > %%i.oxw
! 119: nkf32 -e %srcdir3%\%%i.rr >> %%i.oxw
! 120: echo */ >> %%i.oxw
! 121: oxweave C %lang% < %%i.oxw > %%i.%lang%
! 122: %PERL% ../../texi2html -menu -split_node %%i-%lang%.texi
! 123: call :html_euc_to_sjis
! 124: popd
! 125: gen_hh %%i . %lang%
! 126: hhc %%ihelp.hhp
! 127: )
! 128:
! 129: REM case 4a: *.texi から生成。
! 130:
! 131: for %%i in ( nn_ndbf ) do (
! 132: mkdir %%i
! 133: pushd %%i
! 134: nkf32 -e %srcdir2%\%%i\%%i.texi > %%i.texi
! 135: extract_man %lang% %%i.texi > %%i-%lang%.texi
! 136: oxreplace --old @fref --new @ref %%i-%lang%.texi
! 137: %PERL% ../../texi2html -menu -split_node %%i-%lang%.texi
! 138: call :html_euc_to_sjis
! 139: popd
! 140: gen_hh %%i . %lang%
! 141: hhc %%ihelp.hhp
! 142: )
! 143:
! 144: REM case 4b: *-{ja,en}.texi から生成。
! 145:
! 146: for %%i in ( ns_twistedlog ) do (
! 147: mkdir %%i
! 148: pushd %%i
! 149: nkf32 -e %srcdir2%\%%i\%%i-%lang%.texi > %%i-%lang%.texi
! 150: %PERL% ../../texi2html -menu -split_node %%i-%lang%.texi
! 151: call :html_euc_to_sjis
! 152: popd
! 153: gen_hh %%i . %lang%
! 154: hhc %%ihelp.hhp
! 155: )
! 156:
! 157: REM case 4c: *-ja.texi から生成。日本語のみ。
! 158:
! 159: for %%i in ( noro_matrix noro_mwl noro_pd todo_parametrize ) do (
! 160: if exist %srcdir2%\%%i\%%i-%lang%.texi (
! 161: mkdir %%i
! 162: pushd %%i
! 163: nkf32 -e %srcdir2%\%%i\%%i-%lang%.texi > %%i-%lang%.texi
! 164: %PERL% ../../texi2html -menu -split_node %%i-%lang%.texi
! 165: call :html_euc_to_sjis
! 166: popd
! 167: gen_hh %%i . %lang%
! 168: hhc %%ihelp.hhp
! 169: )
! 170: )
! 171:
! 172: popd
! 173:
! 174: exit /b 0
! 175:
! 176: :html_euc_to_sjis
! 177: for %%i in ( *.html ) do (
! 178: rename %%i __tmp
! 179: nkf32 -Es __tmp > %%i
! 180: del /q __tmp
! 181: )
! 182:
! 183: exit /b 0
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>