Compare commits
2 Commits
c94c3d591e
...
587b79dc31
Author | SHA1 | Date | |
---|---|---|---|
587b79dc31 | |||
67e5023c1e |
10
main.c
10
main.c
@ -116,6 +116,7 @@ static void print_version()
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
GError *error = NULL;
|
||||
GOptionContext *context;
|
||||
gchar *gds_name;
|
||||
@ -173,6 +174,11 @@ int main(int argc, char **argv)
|
||||
/* Get gds name */
|
||||
gds_name = argv[1];
|
||||
|
||||
/* Print out additional arguments as ignored */
|
||||
for (i = 2; i < argc; i++) {
|
||||
printf("Ignored argument: %s", argv[i]);
|
||||
}
|
||||
|
||||
/* Check if PDF/TeX names are supplied. if not generate */
|
||||
basename = g_path_get_basename(gds_name);
|
||||
|
||||
@ -182,8 +188,8 @@ int main(int argc, char **argv)
|
||||
if (!pdfname)
|
||||
pdfname = g_strdup_printf("./%s.pdf", basename);
|
||||
|
||||
if (!pdfname)
|
||||
pdfname = g_strdup_printf("./%s.svg", basename);
|
||||
if (!svgname)
|
||||
svgname = g_strdup_printf("./%s.svg", basename);
|
||||
|
||||
command_line_convert_gds(gds_name, pdfname, texname, pdf, tikz,
|
||||
mappingname, cellname, (double)scale,
|
||||
|
Loading…
Reference in New Issue
Block a user