Debian Codegraph @

texk/cjkutils/cjkutils-src/CEFconv/cefsltx.cmd

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