From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f195.google.com (mail-oi1-f195.google.com [209.85.167.195]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id e656f0cb for ; Tue, 13 Nov 2018 04:12:49 -0500 (EST) Received: by mail-oi1-f195.google.com with SMTP id y23so557271oia.4 for ; Tue, 13 Nov 2018 01:12:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UD5AgmfJFyIlo/pG2Bl87lhxRpDzW8wpeYob0B2nfvo=; b=ORPm+d9ChEQXyf5hRraVw7CZM3dd/M3z86A956GiqD7gB/o9+Czc+jT5H5+DABbQXo FLVie0wayruDLWIKhViVtBDNCNPd+TGpuJ/SumujTw3A1L2bqq31xUG7cdgzKgP2y2h3 lZ6U/k8GH47WUvqNRYxjnZNSMP6DquFDhGs4b0W4NQqIMzXZxJPBmwwA56HgBlIOMxDD p+c1xFGJoc5VoC4TFJ1GLik1zeZmNiMpZEEzejzGkEVF/vFlJ4aqrBFfWbYhqs0kjgB/ Z+kcujrjgbWeEOxtgnI1ObtDeZaDq7C2w4yiEPVqi2T5vS+1g25NDbaa0hTO1pFk2Bx0 eq4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UD5AgmfJFyIlo/pG2Bl87lhxRpDzW8wpeYob0B2nfvo=; b=VmrLoXkz5SPGS4i4wouq/3XdMxJB4abQxQ27kmIQVDfZKRO5JG7GNS3w3rEz431bIr 8NrGf7VHJG7fbCMcRCLoZ7s+3hS4cvzzgpFJ6dVk0wkq/mxPpQxiVUdyRwQD1Fd1+FNI Sb9W9yDqV+7G4OPz9IVDBsqLDNYA7J1KyA050FjfbygswnIc4/g8k3ISy5te9AmxqUDG m5eO6NzGuhanFKQUNKpV4KedIBCd9rMI7SZHfp5XxFTowRHutiOcLnPbyNvSSVJDfXry OUetj2UCul+GZJpZHnpWLqd+Qb0qWjIoQjFbzD+bI3YY+9+fV4QhNOJ7Bl4wDS2O1OXB O5hA== X-Gm-Message-State: AGRZ1gIsleDEy3CYnvF6kDugHgRSDZ5hIQkE/YkFleaBkGBQgLDw9JX+ YLTQuwk8ICeXrozBdw/4scP9CsV2LfJ+cZnpS7fECg== X-Google-Smtp-Source: AJdET5cQUAhmaeZnn2rh2kPiXXnOA55nOh3snaVIPFUJy6vmHtX1lbxOCkVnjQvmPCoQYAP3buVQRtedKHrTcLZ7h20= X-Received: by 2002:aca:68c2:: with SMTP id o63mr2587011oik.293.1542100367900; Tue, 13 Nov 2018 01:12:47 -0800 (PST) X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Received: by 2002:a4a:d182:0:0:0:0:0 with HTTP; Tue, 13 Nov 2018 01:12:47 -0800 (PST) X-Originating-IP: [2601:647:5180:35d7::a50] In-Reply-To: <20181113085046.GB82487@athene.usta.de> References: <20181113085046.GB82487@athene.usta.de> From: Michael Forney Date: Tue, 13 Nov 2018 01:12:47 -0800 Message-ID: Subject: Re: [texi2mdoc] [PATCH] Use mtime of input file for date, and allow override from command-line To: Ingo Schwarze Cc: tech@mandoc.bsd.lv Content-Type: text/plain; charset="UTF-8" On 2018-11-13, Ingo Schwarze wrote: > Hi Michael, > > Michael Forney wrote on Mon, Nov 12, 2018 at 05:00:13PM -0800: > >> I'm using texi2mdoc to generate ffmpeg manuals, > > Just personally, or are you somehow affiliated with the ffmpeg > project (beyond sending occasional patches) and is that project > considering to use texi2mdoc(1)? Just personally in my build scripts for ffmpeg to avoid a build-time dependency on perl. They use a bundled texi2pod.pl from gcc, followed by pod2man to generate the manuals, and they are not pre-generated in the source tar. >> This patch changes texi2mdoc to use the mtime of the input file if >> given by name, falling back to the current time if reading from stdin >> or stat fails. In either case, the date can be given explicitly with >> the -d flag. > > I agree, that's the right thing too do, pod2mdoc(1) behaves in a > similar way. > > So i committed your patch with minimal tweaks (sorting headers, > sorting stack variables roughly by size, making the manual page > more similar too pod2mdoc(1)), also tweaking two nits while here: > %F was the wrong format for mdoc(7), and the usage string lacked > blanks between option letters and option arguments. Great, thank you! -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv