git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] For git-subtree, when installing docs (make install-doc), create man1 folder first.
@ 2012-12-13 20:09 Jesper L. Nielsen
  2012-12-15 18:07 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jesper L. Nielsen @ 2012-12-13 20:09 UTC (permalink / raw)
  To: git, gitster; +Cc: Jesper L. Nielsen

From: "Jesper L. Nielsen" <lyager@gmail.com>

Hi..

I installed Git subtree and discovered that the if the man1dir doesn't exist the man-page for Git Subtree is just called man1.

So, small patch to create the folder first in the Makefile. Hope everything is right with the patch and submitting of the patch.

Best Regards
Jesper

Signed-off-by: Jesper L. Nielsen <lyager@gmail.com>
---
 contrib/subtree/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
index 05cdd5c..a341cf4 100644
--- a/contrib/subtree/Makefile
+++ b/contrib/subtree/Makefile
@@ -35,6 +35,7 @@ install: $(GIT_SUBTREE)
 install-doc: install-man
 
 install-man: $(GIT_SUBTREE_DOC)
+	mkdir -p $(man1dir)
 	$(INSTALL) -m 644 $^ $(man1dir)
 
 $(GIT_SUBTREE_DOC): $(GIT_SUBTREE_XML)
-- 
1.8.0.2

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

* Re: [PATCH] For git-subtree, when installing docs (make install-doc), create man1 folder first.
  2012-12-13 20:09 [PATCH] For git-subtree, when installing docs (make install-doc), create man1 folder first Jesper L. Nielsen
@ 2012-12-15 18:07 ` Junio C Hamano
       [not found] ` <7v8v91y97f.fsf@alter.siamese.dyndns.org>
  2013-01-01  3:06 ` greened
  2 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2012-12-15 18:07 UTC (permalink / raw)
  To: Jesper L. Nielsen; +Cc: git, David A. Greene

"Jesper L. Nielsen" <lyager@gmail.com> writes:

> From: "Jesper L. Nielsen" <lyager@gmail.com>
>
> Hi..
>
> I installed Git subtree and discovered that the if the man1dir doesn't exist the man-page for Git Subtree is just called man1.
>
> So, small patch to create the folder first in the Makefile. Hope everything is right with the patch and submitting of the patch.
>
> Best Regards
> Jesper
>
> Signed-off-by: Jesper L. Nielsen <lyager@gmail.com>
> ---
>  contrib/subtree/Makefile | 1 +
>  1 file changed, 1 insertion(+)

This is a good first step in the right direction, I think.

Shouldn't the install targets take DESTDIR into account like the
main Makefile does, though?

As to the patch submission, everything below "---" line looks sane,
but please check how others write commit log messages by browsing a
handful of entries in "git log --no-merges" output and notice the
difference (the details are found in Documentation/SubmittingPatches).

Thanks.

> diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
> index 05cdd5c..a341cf4 100644
> --- a/contrib/subtree/Makefile
> +++ b/contrib/subtree/Makefile
> @@ -35,6 +35,7 @@ install: $(GIT_SUBTREE)
>  install-doc: install-man
>  
>  install-man: $(GIT_SUBTREE_DOC)
> +	mkdir -p $(man1dir)
>  	$(INSTALL) -m 644 $^ $(man1dir)
>  
>  $(GIT_SUBTREE_DOC): $(GIT_SUBTREE_XML)

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

* Re: [PATCH] For git-subtree, when installing docs (make install-doc), create man1 folder first.
       [not found] ` <7v8v91y97f.fsf@alter.siamese.dyndns.org>
@ 2013-01-01  3:01   ` greened
  0 siblings, 0 replies; 4+ messages in thread
From: greened @ 2013-01-01  3:01 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jesper L. Nielsen, git

Junio C Hamano <gitster@pobox.com> writes:

> "Jesper L. Nielsen" <lyager@gmail.com> writes:
>
>> From: "Jesper L. Nielsen" <lyager@gmail.com>
>>
>> Hi..
>>
>> I installed Git subtree and discovered that the if the man1dir doesn't exist the man-page for Git Subtree is just called man1.
>>
>> So, small patch to create the folder first in the Makefile. Hope everything is right with the patch and submitting of the patch.
>>
>> Best Regards
>> Jesper
>>
>> Signed-off-by: Jesper L. Nielsen <lyager@gmail.com>
>> ---
>
> Thanks.  David, Ack?

Yep.  I can add it to my queue which I'll send to you tomorrow.
Otherwise, feel free to apply it to your copy.

                               -David

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

* Re: [PATCH] For git-subtree, when installing docs (make install-doc), create man1 folder first.
  2012-12-13 20:09 [PATCH] For git-subtree, when installing docs (make install-doc), create man1 folder first Jesper L. Nielsen
  2012-12-15 18:07 ` Junio C Hamano
       [not found] ` <7v8v91y97f.fsf@alter.siamese.dyndns.org>
@ 2013-01-01  3:06 ` greened
  2 siblings, 0 replies; 4+ messages in thread
From: greened @ 2013-01-01  3:06 UTC (permalink / raw)
  To: Jesper L. Nielsen; +Cc: git, gitster

"Jesper L. Nielsen" <lyager@gmail.com> writes:

> So, small patch to create the folder first in the Makefile. Hope
> everything is right with the patch and submitting of the patch.

I've applied this to my local copy and will send it to the list for
integration.

Thanks for fixing this!

                         -David

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

end of thread, other threads:[~2013-01-01  3:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-13 20:09 [PATCH] For git-subtree, when installing docs (make install-doc), create man1 folder first Jesper L. Nielsen
2012-12-15 18:07 ` Junio C Hamano
     [not found] ` <7v8v91y97f.fsf@alter.siamese.dyndns.org>
2013-01-01  3:01   ` greened
2013-01-01  3:06 ` greened

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).