From owner-freebsd-doc Wed Jan 16 12:56:51 2002 Delivered-To: freebsd-doc@freebsd.org Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.67.200.82]) by hub.freebsd.org (Postfix) with ESMTP id 6677E37B402; Wed, 16 Jan 2002 12:56:45 -0800 (PST) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.11.6/8.11.6) id g0GKtrP04127; Wed, 16 Jan 2002 15:55:53 -0500 (EST) (envelope-from alane) Date: Wed, 16 Jan 2002 15:55:53 -0500 From: Alan Eldridge To: Fernan Aguero Cc: ports@FreeBSD.ORG, doc@FreeBSD.ORG Subject: Re: [porter's handbook] problems generating pkg-plist automagically Message-ID: <20020116205553.GB3994@wwweasel.geeksrus.net> References: <20020116160826.E2966@iib.unsam.edu.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020116160826.E2966@iib.unsam.edu.ar> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jan 16, 2002 at 04:08:26PM -0300, Fernan Aguero wrote: >Hi all! >Regarding the documentation: there are no man pages in my port, but a >doc/ directory under WRKSRC with a Makefile, some subdeirectories, >each with their own Makefile ... everything is html, txt, images ... > >Question: Do I let the Makefiles do their job and put everything under >usr/local/doc)? AFAICS kaptain is the only subdir there and most ports >install documentation under /usr/local/share/doc 1. /usr/local/share/doc. 2. does configure take a --docdir option? 3. worst case you patch the Makefile.am or Makefile.in in the docsdir. >According to the porter's handbook, I could do something like: >post-install: > .if !defined(NOPORTDOCS) > ${MKDIR} ${PREFIX}/share/doc/${PORTNAME} > ${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/${PORTNAME} > .endif Yes, that works, too. >This is choking on me: >error: unexpected "(" in .if !defined(NOPORTDOCS) Does your .if start in the first column? Sure there's no error on the line immediately above it? (That's a weird one.) -- Alan Eldridge Pmmfmffmmfmp mmmpppppffmpmfpmpppff PmpMpmMpp ppfppp MpfpffmppmppMmpFmmMpm mfpmmmmmfpmpmpppff. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message