diff doc/interpreter/Makefile.in @ 6126:c0011bf8f815

[project @ 2006-10-31 20:08:30 by jwe]
author jwe
date Tue, 31 Oct 2006 20:10:39 +0000
parents b64fb24bf4a0
children 2eb0723b4fad
line wrap: on
line diff
--- a/doc/interpreter/Makefile.in
+++ b/doc/interpreter/Makefile.in
@@ -147,10 +147,12 @@
 	$(INSTALL_DATA) $(filter-out html-dir, $<) HTML
 
 ## Unset DISPLAY here to avoid problems with the -title option for
-## gnuplot (it doesn't work if we are calling pgnuplot).
+## gnuplot (it doesn't work if we are calling pgnuplot).  Sleep for
+## a second to allow gnuplot to finish writing its output before
+## Octave exits.
 define run-octave
   DISPLAY= $(TOPDIR)/run-octave -f -q -H -p $(srcdir) \
-    --eval "$(notdir $(basename $<)) ('$(notdir $(basename $@))', '$(patsubst .%,%, $(suffix $@))')"
+    --eval "$(notdir $(basename $<)) ('$(notdir $(basename $@))', '$(patsubst .%,%, $(suffix $@))'); sleep (1);"
 endef
 
 $(SPARSEIMAGES_EPS) $(SPARSEIMAGES_PNG) $(SPARSEIMAGES_TXT): sparseimages.m