1 |
< |
/* Copyright (c) 1994 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1995 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
94 |
|
if (i == argc) { /* convert stdin */ |
95 |
|
if ((rv = mg_load(NULL)) != MG_OK) |
96 |
|
exit(1); |
97 |
+ |
if (mg_nunknown) |
98 |
+ |
printf("## %s: %u unknown entities\n", |
99 |
+ |
argv[0], mg_nunknown); |
100 |
|
} else /* convert each file */ |
101 |
|
for ( ; i < argc; i++) { |
102 |
|
printf("## %s %s ##############################\n", |
103 |
|
argv[0], argv[i]); |
104 |
|
if ((rv = mg_load(argv[i])) != MG_OK) |
105 |
|
exit(1); |
106 |
+ |
if (mg_nunknown) { |
107 |
+ |
printf("## %s %s: %u unknown entities\n", |
108 |
+ |
argv[0], argv[i], mg_nunknown); |
109 |
+ |
mg_nunknown = 0; |
110 |
+ |
} |
111 |
|
} |
112 |
|
exit(0); |
113 |
|
userr: |
353 |
|
op = fname + strlen(fname); |
354 |
|
(void)strcpy(op, ".rad"); |
355 |
|
/* see if we need to run ies2rad */ |
356 |
< |
if (access(op, 0) == -1) { |
356 |
> |
if (access(fname, 0) == -1) { |
357 |
|
(void)strcpy(combuf, "ies2rad");/* build ies2rad command */ |
358 |
|
op = combuf + 7; /* get -m option (first) */ |
359 |
|
if (ac-xa0 >= 2 && !strcmp(av[xa0], "-m")) { |