From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-bw0-f49.google.com (mail-bw0-f49.google.com [209.85.214.49]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p97MLvva029652 for ; Fri, 7 Oct 2011 18:21:57 -0400 (EDT) Received: by bkat2 with SMTP id t2so6486676bka.36 for ; Fri, 07 Oct 2011 15:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=cJPCpR5Mb/+1ECZ6YBdbD+RdPKaYDfKSVSoQlUg04Fc=; b=Sw1QC5BedLQbFK3464atNpoh3WSOTPBl5exP214WkFbxLRQu/9y/zWfNLxo9lhqb2C W5s8nZJO8S2+WP7AUgsLAeP9ZgUqJMHYqAo/2jZHwiZI0V0iFOj0TVt/zaDwU3bVH/vz qX99Fm1W6SpDxhEhQ+abuqEwmPB1A9kpLzQ4E= Received: by 10.223.5.139 with SMTP id 11mr13525158fav.21.1318026111563; Fri, 07 Oct 2011 15:21:51 -0700 (PDT) Received: from procyon.xvoid.org ([213.132.76.142]) by mx.google.com with ESMTPS id n1sm14887532fad.20.2011.10.07.15.21.49 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 15:21:50 -0700 (PDT) Received: from procyon.xvoid.org (yuri@procyon.xvoid.org [IPv6:::1]) by procyon.xvoid.org (8.14.5/8.14.5) with ESMTP id p97MLmTw062877; Sat, 8 Oct 2011 02:21:48 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by procyon.xvoid.org (8.14.5/8.14.5/Submit) id p97MLl4r062875; Sat, 8 Oct 2011 02:21:47 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: procyon.xvoid.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Sat, 8 Oct 2011 02:21:47 +0400 From: Yuri Pankov To: Kristaps Dzonsons Cc: discuss@mdocml.bsd.lv Subject: Re: Use OSNAME/uname and msec.in for man(7) input Message-ID: <20111007222147.GH1294@procyon.xvoid.org> References: <20111007211428.GG1294@procyon.xvoid.org> <4E8F7931.7030307@bsd.lv> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E8F7931.7030307@bsd.lv> User-Agent: Mutt/1.5.21 (2010-09-15) On Sat, Oct 08, 2011 at 12:12:01AM +0200, Kristaps Dzonsons wrote: > On 07/10/2011 23:14, Yuri Pankov wrote: > > Hi, > > > > I want to propose the following change to man_validate.c - if we are > > missing SOURCE and VOL in TH, do the same as for the mdoc manpages - > > use OSNAME, if it's not defined, use uname output and get the VOL from > > msec.in if VOL isn't defined in manpage. I've attached the diff that > > seems to work for me (mostly just copy/paste from mdoc_validate.c), hope > > the idea sounds ok.. > > Hi Yuri, > > I don't see groff doing this on any machines I have handy... do you have > a use-case in mind for this behaviour? It depends on the contents of the macro file it's using - yes, by default it doesn't do this, but given, e.g., http://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/troff/troff.d/tmac.d/an you will get the the output with "Illumos" and translated man section if they are omitted in the manpage.. I don't think that it's something where groff compatibility is needed. Yuri -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv