octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [changeset] Re: [manual] In prepad, add reference to postpad.


From: Thorsten Meyer
Subject: Re: [changeset] Re: [manual] In prepad, add reference to postpad.
Date: Sun, 18 Jan 2009 22:50:42 +0100
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Hi,

John W. Eaton wrote:
> On  4-Jan-2009, Daniel J Sebald wrote:
>
> | Thorsten Meyer wrote:
> | 
> | > I propose to add at least a test like this to the doc function:
> | > 
> | > %!test if exist( info_file ()) != 2
> | > %!       error ("Info file %s does not exist!", info_file ());
> | > %!     endif
> | > 
> | > Or maybe the makefile should be changed in such a way that the build 
> process is interrupted when the
> | > docs do not build sucessfully.
> | 
> | I suppose losing documentation isn't a critical thing for non-development.  
> Perhaps a warning:  WARNING:  INFO FILE NOT BUILT CORRECTLY.  WILL NOT HAVE 
> DOC FUNCTION, which would be clearly visible amongst all the text output.
>
> Either or both of these is OK with me, as is having a failure in
> building the documentation be fatal, provided there is also a way to
> skip building the documentation (I can't remember if that has already
> been done).
>   
Here is a patch with the test proposed above.

regards

Thorsten
# HG changeset patch
# User Thorsten Meyer <address@hidden>
# Date 1232314095 -3600
# Node ID 512b29cbc61a744352a34ffad2e6f75e794c7bad
# Parent  0eb83938c8bc97f8657d7a4de1a88f10bcbc8b6e
Check for successful build of the documentation

diff -r 0eb83938c8bc -r 512b29cbc61a scripts/ChangeLog
--- a/scripts/ChangeLog Sun Jan 18 22:01:36 2009 +0100
+++ b/scripts/ChangeLog Sun Jan 18 22:28:15 2009 +0100
@@ -0,0 +1,4 @@
+2009-01-18  Thorsten Meyer  <address@hidden>
+
+       * miscellaneous/doc.m: Add test for existence of info file.
+       
diff -r 0eb83938c8bc -r 512b29cbc61a scripts/miscellaneous/doc.m
--- a/scripts/miscellaneous/doc.m       Sun Jan 18 22:01:36 2009 +0100
+++ b/scripts/miscellaneous/doc.m       Sun Jan 18 22:28:15 2009 +0100
@@ -107,3 +107,7 @@
   endif
 
 endfunction
+
+%!test if exist( info_file ()) != 2
+%!       error ("Info file %s does not exist!", info_file ());
+%!     endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]