Skip to content

Commit

Permalink
[PATCH] manpage name conflict
Browse files Browse the repository at this point in the history
This moves the git manpage to man7, since "git" isn't a direct command
per se.  It also does two other things:

    * Sort of works around the asciidoc 6.0.3 bug where the manpages all
      get called "git.1".  It just renames them to what they should have
      been called.

    * Fixes a cut-n-paste bug in git-diff-helper.txt that was making
      asciidoc choke.
  • Loading branch information
Sebastian Kuzminsky authored and Linus Torvalds committed May 19, 2005
1 parent 415e96c commit 7984eab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DOC_SRC=$(wildcard git*.txt)
DOC_HTML=$(patsubst %.txt,%.html,$(DOC_SRC))
DOC_MAN=$(patsubst %.txt,%.1,$(DOC_SRC))
DOC_MAN=$(patsubst %.txt,%.1,$(wildcard git-*.txt)) git.7

all: $(DOC_HTML) $(DOC_MAN)

Expand All @@ -13,13 +13,15 @@ git-diff-%.txt: diff-format.txt
touch $@

clean:
rm -f *.xml *.html *.1
rm -f *.xml *.html *.1 *.7

%.html : %.txt
asciidoc -b css-embedded -d manpage $<

%.1 : %.xml
%.1 %.7 : %.xml
xmlto man $<
# FIXME: this next line works around an output filename bug in asciidoc 6.0.3
[ "$@" = "git.7" ] || mv git.1 $@

%.xml : %.txt
asciidoc -b docbook -d manpage $<
2 changes: 1 addition & 1 deletion Documentation/git-diff-helper.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
git-diff-helper(1)
=======================
==================
v0.1, May 2005

NAME
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
git(1)
git(7)
======
v0.1, May 2005

Expand Down

0 comments on commit 7984eab

Please sign in to comment.