2
2
and it produces several .c and .h files in the current directory
5
$Id: splitup.c 13921 2009-06-23 16:27:41Z peter $
5
$Id: splitup.c 17922 2010-04-19 12:31:17Z peter $
7
7
Tim Morgan September 19, 1987. */
64
64
if (fgets (buffer, sizeof (buffer), stdin) == NULL)
66
66
if (strncmp (buffer, "#ifdef", 6) == 0
67
|| strncmp (buffer, "#if 1", 5) == 0
68
67
|| strncmp (buffer, "#ifndef", 7) == 0)
124
123
} else if (STREQ (output_name, "pdftex")) {
125
124
fputs ("#define INITEX\n#define TeX\n#define pdfTeX\n", out);
126
125
coerce = "pdftexcoerce.h";
127
} else if (STREQ (output_name, "luatex")) {
128
fputs ("#define INITEX\n#define TeX\n#define luaTeX\n", out);
129
coerce = "luatexcoerce.h";
130
126
} else if (STREQ (output_name, "xetex")) {
131
127
fputs ("#define INITEX\n#define TeX\n#define XeTeX\n", out);
132
128
coerce = "xetexcoerce.h";
133
} else if (STREQ (output_name, "mp")) {
134
fputs ("#define INIMP\n#define MP\n", out);
135
coerce = "mpcoerce.h";
129
} else if (STREQ (output_name, "ptex")) {
130
fputs ("#define INITEX\n#define TeX\n#define pTeX\n", out);
131
coerce = "ptexcoerce.h";
137
FATAL1 ("Can only split mf, mp, tex, etex, aleph, luatex, pdftex, or xetex,\n not %s", output_name);
133
FATAL1 ("Can only split mf, tex, etex, aleph, pdftex, or xetex,\n not %s", output_name);
139
135
coerce_len = strlen (coerce);