git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Junio C Hamano <gitster@pobox.com>,
	"David E. Wheeler" <david@justatheory.com>,
	git@vger.kernel.org
Subject: Re: Bad Man Page URLs
Date: Fri, 6 Apr 2012 01:17:17 -0500	[thread overview]
Message-ID: <20120406061717.GB3911@burratino> (raw)
In-Reply-To: <20120406054637.GA25301@sigill.intra.peff.net>

Jeff King wrote:

> Junio, what do you think of building the git-manpages-* tarballs (and
> the git-manpages repo) with MAN_BASE_URL set to "http://some-official-place/"?
> As of now, they mention "file:///home/junio/...".

Could be as simple as this, no?

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
 Documentation/Makefile |   10 ++++++++--
 Makefile               |    1 +
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git i/Documentation/Makefile w/Documentation/Makefile
index d40e211f..0edad3a2 100644
--- i/Documentation/Makefile
+++ w/Documentation/Makefile
@@ -248,8 +248,14 @@ $(MAN_HTML): %.html : %.txt
 		$(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $< && \
 	mv $@+ $@
 
-manpage-base-url.xsl: manpage-base-url.xsl.in
-	sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
+manpage-base-url.xsl: manpage-base-url.xsl.in FORCE
+	$(QUIET_GEN)$(RM) $@+ && \
+	sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@+ && \
+	if test -e $@ && cmp -s $@+ $@; then \
+		$(RM) $@+; \
+	else \
+		mv $@+ $@; \
+	fi
 
 %.1 %.5 %.7 : %.xml manpage-base-url.xsl
 	$(QUIET_XMLTO)$(RM) $@ && \
diff --git i/Makefile w/Makefile
index be1957a5..ce6f805c 100644
--- i/Makefile
+++ w/Makefile
@@ -2623,6 +2623,7 @@ dist-doc:
 	$(RM) -r .doc-tmp-dir
 	mkdir -p .doc-tmp-dir/man1 .doc-tmp-dir/man5 .doc-tmp-dir/man7
 	$(MAKE) -C Documentation DESTDIR=./ \
+		MAN_BASE_URL=git-htmldocs/ \
 		man1dir=../.doc-tmp-dir/man1 \
 		man5dir=../.doc-tmp-dir/man5 \
 		man7dir=../.doc-tmp-dir/man7 \
-- 

  reply	other threads:[~2012-04-06  6:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06  1:48 Bad Man Page URLs David E. Wheeler
2012-04-06  2:32 ` Jeff King
2012-04-06  2:54   ` Jeff King
2012-04-06  4:22     ` Jonathan Nieder
2012-04-06  5:46       ` Jeff King
2012-04-06  6:17         ` Jonathan Nieder [this message]
2012-04-06  7:15         ` Junio C Hamano
2012-04-06  7:23           ` Jeff King
2012-04-26 20:12           ` David E. Wheeler
2012-04-26 20:19             ` Jonathan Nieder
2012-04-26 20:24               ` David E. Wheeler
2012-04-26 20:29                 ` Jonathan Nieder
2012-04-26 20:34                   ` David E. Wheeler
2012-05-02 21:46                     ` Jakub Narebski
2012-04-26 21:02               ` Jeff King
2012-04-26 21:58                 ` Scott Chacon
2012-04-26 22:11                   ` David E. Wheeler
2012-04-26 22:12                   ` Jonathan Nieder
2012-04-26 22:16                   ` Junio C Hamano
2012-04-26 22:25                     ` Scott Chacon
2012-04-26 22:34                       ` Jonathan Nieder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120406061717.GB3911@burratino \
    --to=jrnieder@gmail.com \
    --cc=david@justatheory.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).