Skip to contentSkip to conversation

doc bug?

DISCUSSION Han-Wen Nienhuys 3 participants 5 messages Aug 11, 2016

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
 Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen
#1 lore raw
Quoted 8 lines · Han-Wen Nienhuys

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...

#2 lore raw

Junio C Hamano escreveu:

Quoted 9 lines
Quoted 5 lines

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.

#3 lore raw
In reply to Han-Wen Nienhuys
Quoted 1 line · Han-Wen Nienhuys

Hi,

Hello,

Quoted 11 lines

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]
**

Quoted 1 line

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".

#4 lore raw

Jonas Fonseca escreveu:

Quoted 3 lines
Quoted 1 line

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?