Re: Docs build (was: Re: Docs build failure: jp-html)

2011-09-06 Thread Christian Stimming

Zitat von Geert Janssens janssens-ge...@telenet.be:

Which means that the pdf target has not rebuilt since Jul 2.  However, the
build rule *is*:

make html pdf


Are you sure there have been any changes to the source files since Jul 2 ? I
don't see a need to rebuild the pdf is its sources are unchanged.

(Looking at the rules now...)

It seems the images are not marked as dependencies of the pdf files. So if an
images is changed, this will not trigger a rebuild. Perhaps we  
should list the images as dependencies to fix this ?


We could, but you can easily imagine the follow-up problem with this:  
As soon as any editor changes a filename of an image or removes one,  
he/she will surely forget to adapt those makefile dependency rules,  
causing another break of build... but maybe that's not a problem and  
it is probably a good idea to add the images as dependencies.


Regards,

Christian

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build (was: Re: Docs build failure: jp-html)

2011-09-05 Thread Derek Atkins
Hi,

On Sun, September 4, 2011 3:56 pm, Cristian Marchi wrote:
 Is there a way for me to see if the nightly doc builds work? can you cc
 me the nightly build so that I can check if all went right?

Um, I don't know.  Right now it's run out of cron and the mail-on-failure
comes directly to me.  I'd have to figure out how to email to someone
else.  However there have been no failures for the past few nights.

 Last question: looking in the docs build tree [1] I see that pdf files
 are old. With what frequency the pdf and html files are generated?

Hmm, they should be generated every night.  However it looks like the pdf
does not get rebuilt.  Maybe the dependencies are wrong such that if the
pdf exists it wont rebuild?  Looking at the docs build dir I see:

[root@code trunk]# ls -l guide/C/gnucash-guide.pdf
-rw-r--r--. 1 root root 7701032 Jul  2 03:20 guide/C/gnucash-guide.pdf

Which means that the pdf target has not rebuilt since Jul 2.  However, the
build rule *is*:

make html pdf

I'm going to change that to add epub in a minute.  Note that epub has the
same problem.  Even with make epub it will not rebuild over an existing
gnucash-guide.epub.  At least that's true for everything except jp_JP. 
However the pdf rule will not rebuild the pdf if it exists.


 Thanks
 Cristian

-derek


 [1] http://code.gnucash.org/docs/

 Il 25/08/2011 18:32, Derek Atkins ha scritto:
 Thanks.  It works now.
 -derek

 PS: I get nightly mail about the cron job failure.  I just haven't
 looked
 into it in a while..

 On Thu, August 25, 2011 12:17 pm, Cristian Marchi wrote:
 It should be fixed now. I forgot to add the xml files for chapter 16
 and
 17.
 Thanks for noticing this problem.

 Cristian

 Il 25/08/2011 17:48, Derek Atkins ha scritto:
 There is a bug in the docs build:

 make[2]: Entering directory
 `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'
 /bin/sh /home/gnucash/gnucash-docs/trunk/install-sh -d
 gnucash-guide;
 \
 for file in gnucash-guide.xml; do \
xsltproc -o gnucash-guide/ --param use.id.as.filename 1 \
  --stringparam chunker.output.encoding
 UTF-8
 \
../../xsl/general-customization.xsl ./$file; \
 done
 warning: failed to load external entity ch_oth_assets.xml
 ./gnucash-guide.xml:340: parser error : Failure to process entity
 chapter16
 chapter16;
  ^
 ./gnucash-guide.xml:340: parser error : Entity 'chapter16' not defined
 chapter16;
  ^
 warning: failed to load external entity ch_python_bindings.xml
 ./gnucash-guide.xml:341: parser error : Failure to process entity
 chapter17
 chapter17;
  ^
 ./gnucash-guide.xml:341: parser error : Entity 'chapter17' not defined
 chapter17;
  ^
 unable to parse ./gnucash-guide.xml
 make[2]: *** [convert-html] Error 6
 make[2]: Leaving directory
 `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'

 -derek

 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel





-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build (was: Re: Docs build failure: jp-html)

2011-09-05 Thread Geert Janssens
On maandag 5 september 2011, Derek Atkins wrote:
 Hi,
 
 On Sun, September 4, 2011 3:56 pm, Cristian Marchi wrote:
  Is there a way for me to see if the nightly doc builds work? can you cc
  me the nightly build so that I can check if all went right?
 
 Um, I don't know.  Right now it's run out of cron and the mail-on-failure
 comes directly to me.  I'd have to figure out how to email to someone
 else.  However there have been no failures for the past few nights.
 
  Last question: looking in the docs build tree [1] I see that pdf files
  are old. With what frequency the pdf and html files are generated?
 
 Hmm, they should be generated every night.  However it looks like the pdf
 does not get rebuilt.  Maybe the dependencies are wrong such that if the
 pdf exists it wont rebuild?  Looking at the docs build dir I see:
 
 [root@code trunk]# ls -l guide/C/gnucash-guide.pdf
 -rw-r--r--. 1 root root 7701032 Jul  2 03:20 guide/C/gnucash-guide.pdf
 
 Which means that the pdf target has not rebuilt since Jul 2.  However, the
 build rule *is*:
 
 make html pdf
 
Are you sure there have been any changes to the source files since Jul 2 ? I 
don't see a need to rebuild the pdf is its sources are unchanged.

(Looking at the rules now...)

It seems the images are not marked as dependencies of the pdf files. So if an 
images is changed, this will not trigger a rebuild. Perhaps we should list the 
images as dependencies to fix this ?

Geert
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Docs build (was: Re: Docs build failure: jp-html)

2011-09-04 Thread Cristian Marchi
Is there a way for me to see if the nightly doc builds work? can you cc 
me the nightly build so that I can check if all went right?


Last question: looking in the docs build tree [1] I see that pdf files 
are old. With what frequency the pdf and html files are generated?


Thanks
Cristian

[1] http://code.gnucash.org/docs/

Il 25/08/2011 18:32, Derek Atkins ha scritto:

Thanks.  It works now.
-derek

PS: I get nightly mail about the cron job failure.  I just haven't looked
into it in a while..

On Thu, August 25, 2011 12:17 pm, Cristian Marchi wrote:

It should be fixed now. I forgot to add the xml files for chapter 16 and
17.
Thanks for noticing this problem.

Cristian

Il 25/08/2011 17:48, Derek Atkins ha scritto:

There is a bug in the docs build:

make[2]: Entering directory
`/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'
/bin/sh /home/gnucash/gnucash-docs/trunk/install-sh -d gnucash-guide;
\
for file in gnucash-guide.xml; do \
   xsltproc -o gnucash-guide/ --param use.id.as.filename 1 \
 --stringparam chunker.output.encoding UTF-8
\
   ../../xsl/general-customization.xsl ./$file; \
done
warning: failed to load external entity ch_oth_assets.xml
./gnucash-guide.xml:340: parser error : Failure to process entity
chapter16
chapter16;
 ^
./gnucash-guide.xml:340: parser error : Entity 'chapter16' not defined
chapter16;
 ^
warning: failed to load external entity ch_python_bindings.xml
./gnucash-guide.xml:341: parser error : Failure to process entity
chapter17
chapter17;
 ^
./gnucash-guide.xml:341: parser error : Entity 'chapter17' not defined
chapter17;
 ^
unable to parse ./gnucash-guide.xml
make[2]: *** [convert-html] Error 6
make[2]: Leaving directory
`/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'

-derek


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel




___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel