git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* doc bug?
@ 2006-12-08 17:07 Han-Wen Nienhuys
  2006-12-09 17:30 ` Jonas Fonseca
  2006-12-09 18:42 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-08 17:07 UTC (permalink / raw)
  To: git


Hi,

while messing with GIT's build system, I got

**
asciidoc -b docbook -d manpage -f ../Documentation/asciidoc.conf ../Documentation/git-tools.txt
ERROR: git-tools.txt: line 2: malformed manpage title
ERROR: git-tools.txt: line 6: first section must be named NAME
ERROR: git-tools.txt: line 9: malformed NAME section body
FAILED: /home/lilydev/vc/git/Documentation/git-tools.txt: line 9: unexpected error:
------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/asciidoc", line 3639, in asciidoc
    document.translate()
  File "/usr/bin/asciidoc", line 966, in translate
    Header.translate()
  File "/usr/bin/asciidoc", line 1123, in translate
    attrs['manname'] = string.strip(mo.group('manname'))
AttributeError: 'NoneType' object has no attribute 'group'
------------------------------------------------------------
**

is this a new problem?  I'm on FC6, with  asciidoc 7.0.2


-- 
 Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: doc bug?
  2006-12-08 17:07 doc bug? Han-Wen Nienhuys
@ 2006-12-09 17:30 ` Jonas Fonseca
  2006-12-09 18:04   ` Han-Wen Nienhuys
  2006-12-09 18:42 ` Junio C Hamano
  1 sibling, 1 reply; 5+ messages in thread
From: Jonas Fonseca @ 2006-12-09 17:30 UTC (permalink / raw)
  To: hanwen; +Cc: git

On 12/8/06, Han-Wen Nienhuys <hanwen@xs4all.nl> wrote:
> Hi,

Hello,

> while messing with GIT's build system, I got
>
> **
> asciidoc -b docbook -d manpage -f ../Documentation/asciidoc.conf ../Documentation/git-tools.txt
> ERROR: git-tools.txt: line 2: malformed manpage title
> ERROR: git-tools.txt: line 6: first section must be named NAME
> ERROR: git-tools.txt: line 9: malformed NAME section body
> FAILED: /home/lilydev/vc/git/Documentation/git-tools.txt: line 9: unexpected error:
> [traceback]
> **
>
> is this a new problem?  I'm on FC6, with  asciidoc 7.0.2

The git-tools.txt document is not intended to be a man page
(there is no git-tools command) so it cannot be converted into
a man page. You should be able to make a HTML document
out of it, although the AsciiDoc formatting is not "optimal".

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: doc bug?
  2006-12-09 17:30 ` Jonas Fonseca
@ 2006-12-09 18:04   ` Han-Wen Nienhuys
  0 siblings, 0 replies; 5+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-09 18:04 UTC (permalink / raw)
  To: Jonas Fonseca; +Cc: git

Jonas Fonseca escreveu:
>> is this a new problem?  I'm on FC6, with  asciidoc 7.0.2
> 
> The git-tools.txt document is not intended to be a man page

So why does the doc try make one for it? This is a bug, no?

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: doc bug?
  2006-12-08 17:07 doc bug? Han-Wen Nienhuys
  2006-12-09 17:30 ` Jonas Fonseca
@ 2006-12-09 18:42 ` Junio C Hamano
  2006-12-11 13:54   ` Han-Wen Nienhuys
  1 sibling, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2006-12-09 18:42 UTC (permalink / raw)
  To: hanwen; +Cc: git

Han-Wen Nienhuys <hanwen@xs4all.nl> writes:

> while messing with GIT's build system, I got
>
> **
> asciidoc -b docbook -d manpage -f ../Documentation/asciidoc.conf ../Documentation/git-tools.txt
> ERROR: git-tools.txt: line 2: malformed manpage title
> ERROR: git-tools.txt: line 6: first section must be named NAME
> ERROR: git-tools.txt: line 9: malformed NAME section body
> FAILED: /home/lilydev/vc/git/Documentation/git-tools.txt: line 9: unexpected error:

That is interesting.  git-tools is listed on ARTICLES which is
excluded from MAN1_TXT so the Makefile should not even try to
run the above commandline that says 'manpage'.

At least that is what our Makefile intends to do.

So that means you may have found a bug in our Makefile, or your
make (by the way I think we pretty much requires GNU make to
build git), or perhaps both.

But I do not see an obvious breakage in our Makefile in this
area...



^ permalink raw reply	[flat|nested] 5+ messages in thread

* doc bug?
  2006-12-09 18:42 ` Junio C Hamano
@ 2006-12-11 13:54   ` Han-Wen Nienhuys
  0 siblings, 0 replies; 5+ messages in thread
From: Han-Wen Nienhuys @ 2006-12-11 13:54 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Junio C Hamano escreveu:
>> asciidoc -b docbook -d manpage -f ../Documentation/asciidoc.conf ../Documentation/git-tools.txt
>> ERROR: git-tools.txt: line 2: malformed manpage title
>> ERROR: git-tools.txt: line 6: first section must be named NAME
>> ERROR: git-tools.txt: line 9: malformed NAME section body
>> FAILED: /home/lilydev/vc/git/Documentation/git-tools.txt: line 9: unexpected error:
 
> So that means you may have found a bug in our Makefile, or your
> make (by the way I think we pretty much requires GNU make to
> build git), or perhaps both.

Hi,

it was my bad, caused by me tweaking the Makefiles.  I will be posting
the last version of my separate builddir patch separately, with
support for the documentation as well.  Can you have a look so I know
whether it's worth investing any more time in? 

Unfortunately, asciidoc doesn't seem to support a --include-path
option or similar, so I can't get the documentation support to work
completely.

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-11 13:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 17:07 doc bug? Han-Wen Nienhuys
2006-12-09 17:30 ` Jonas Fonseca
2006-12-09 18:04   ` Han-Wen Nienhuys
2006-12-09 18:42 ` Junio C Hamano
2006-12-11 13:54   ` Han-Wen Nienhuys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).