From owner-freebsd-ports@FreeBSD.ORG Mon Mar 5 13:16:13 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1086E106566C for ; Mon, 5 Mar 2012 13:16:13 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo203.cox.net (eastrmfepo203.cox.net [68.230.241.218]) by mx1.freebsd.org (Postfix) with ESMTP id 9EE058FC1F for ; Mon, 5 Mar 2012 13:16:12 +0000 (UTC) Received: from eastrmimpo305.cox.net ([68.230.241.237]) by eastrmfepo203.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120305131607.EGHE18532.eastrmfepo203.cox.net@eastrmimpo305.cox.net> for ; Mon, 5 Mar 2012 08:16:07 -0500 Received: from serene.no-ip.org ([98.164.84.176]) by eastrmimpo305.cox.net with bizsmtp id hpG61i0033oG0Ji02pG69F; Mon, 05 Mar 2012 08:16:06 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020203.4F54BC96.011D,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=/V7Tp+3PUoqs/jsBJ2ZZxBSMh4ee5WMdd5A4BaPksPM= c=1 sm=1 a=W28qOAfSpUQA:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=qwmwShWo9LG1Fa0ONy89vg==:17 a=WF2pI21SAAAA:8 a=FP58Ms26AAAA:8 a=kviXuzpPAAAA:8 a=f6AOECWMkP25YewlkZ4A:9 a=CjuIK1q_8ugA:10 a=MHmzl5aOqcYA:10 a=4vB-4DCPJfMA:10 a=qwmwShWo9LG1Fa0ONy89vg==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q25DG5hF001832 for ; Mon, 5 Mar 2012 07:16:05 -0600 (CST) (envelope-from conrads@cox.net) Date: Mon, 5 Mar 2012 07:16:00 -0600 From: "Conrad J. Sabatier" To: freebsd-ports@freebsd.org Message-ID: <20120305071600.21ee18ac@cox.net> In-Reply-To: <4F5488F7.7080003@infracaninophile.co.uk> References: <20120304172036.3963aafc@cox.net> <20120304172825.18de3735@cox.net> <4F5488F7.7080003@infracaninophile.co.uk> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Unexpected results from "make index" on a ports tree in a non-standard location, X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 13:16:13 -0000 On Mon, 05 Mar 2012 09:35:51 +0000 Matthew Seaman wrote: > On 04/03/2012 23:28, Conrad J. Sabatier wrote: > > Seems a little odd to me, but if that's the case, I guess I'll have > > to make some adjustments to mkreadmes. > > You could just make all the URL paths in README.html files relative to > the current location. Makes the question of what ${PORTSDIR} is set > to pretty much irrelevant. > > Cheers, > > Matthew I've worked it out now. The only place the canonical path is needed is when searching the index. Anywhere else, the real path is fine to use. Turned out to be a very simple fix. I uploaded mkreadmes-1.1.tar.bz2 to Sourceforge yesterday. Still awaiting the port update's commit. Anyone using this thing really should get the latest version, even if your ports tree is not in a non-standard location, as I also added some checking of the index file to catch any errors in the format of the lines. Two rather important fixes. http://sourceforge.net/projects/mkreadmes/files/mkreadmes-1.1.tar.bz2/download -- Conrad J. Sabatier conrads@cox.net