Skip to content

Commit

Permalink
Don't include ../README in git.txt - make a local copy
Browse files Browse the repository at this point in the history
asciidoc 7.0.4 and newer considers such includes from parent directory
unsafe.

Signed-off-by: Pavel Roskin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Pavel Roskin authored and Junio C Hamano committed Jan 25, 2006
1 parent 41e79c9 commit 941c944
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions Documentation/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
*.7
howto-index.txt
doc.dep
README
9 changes: 6 additions & 3 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ doc.dep : $(wildcard *.txt) build-docdep.perl

-include doc.dep

git.7: ../README
git.7: README

README: ../README
cp $< $@


clean:
rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html doc.dep
rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html doc.dep README

%.html : %.txt
asciidoc -b xhtml11 -d manpage -f asciidoc.conf $<
Expand All @@ -77,7 +80,7 @@ clean:
%.xml : %.txt
asciidoc -b docbook -d manpage -f asciidoc.conf $<

git.html: git.txt ../README
git.html: git.txt README

glossary.html : glossary.txt sort_glossary.pl
cat $< | \
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ git Diffs

Discussion[[Discussion]]
------------------------
include::../README[]
include::README[]

Authors
-------
Expand Down

0 comments on commit 941c944

Please sign in to comment.