Commit f38502f3 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

bahave like the old batch code and call app_exit(FALSE) when reading from

2001-07-18  Michael Natterer  <mitch@gimp.org>

	* app/batch.c: bahave like the old batch code and call
	app_exit(FALSE) when reading from STDIN is finished.
parent 7c8b4190
2001-07-18 Michael Natterer <mitch@gimp.org>
* app/batch.c: bahave like the old batch code and call
app_exit(FALSE) when reading from STDIN is finished.
2001-07-18 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-text-console.c: stop reading on EOF
......
......@@ -52,6 +52,7 @@ static ProcRecord *eval_proc;
void
batch_init (Gimp *gimp)
{
gboolean read_from_stdin = FALSE;
gboolean perl_server_already_running = FALSE;
gint i;
......@@ -63,6 +64,8 @@ batch_init (Gimp *gimp)
if (batch_cmds[1])
batch_cmds[1] = NULL;
read_from_stdin = TRUE;
}
for (i = 0; batch_cmds[i]; i++)
......@@ -85,14 +88,17 @@ batch_init (Gimp *gimp)
continue;
}
}
if (!eval_proc)
if (! eval_proc)
{
g_message ("script-fu not available: batch mode disabled\n");
return;
}
batch_run_cmd (gimp, batch_cmds[i]);
if (read_from_stdin)
app_exit (FALSE);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment