[BACK]Return to makehelp2.bat CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows / help

Annotation of OpenXM_contrib2/windows/help/makehelp2.bat, Revision 1.2

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>