Debian Codegraph @

texk/cjkutils/cjkutils-src/extconv/bg5pltx.cmd

raw
1 /*----------------------------------------------------------------------*\
2 bg5pltx.cmd
3
4 This file is part of the CJK macro package for LaTeX2e ver. 4.8.5
5
6 Copyright (C) 1994-2021 Wonkoo Kim <[email protected]>
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program in doc/COPYING; if not, write to the Free
20 Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
21 MA 02110-1301 USA
22
23 Wonkoo Kim ([email protected]), September 2, 1996
24 \*----------------------------------------------------------------------*/
25
26 Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
27 Call SysLoadFuncs
28
29 parse arg file
30
31 drive = filespec('drive', file)
32 path = filespec('path', file)
33 fname = filespec('name', file)
34 m = lastpos('.', fname)
35 if (m = 0) then m = length(fname) + 1
36 cjkfile = drive||path||delstr(fname, m)||'.cjk'
37
38 'extconv <' file '>' cjkfile
39
40 ucjkfile = translate(cjkfile,'/','\')
41 if stream(cjkfile, 'C', 'QUERY EXISTS') \= '' then
42 'call latex.cmd' ucjkfile
43
44 /* End of bg5pltx.cmd */