From owner-freebsd-ports@FreeBSD.ORG Wed Dec 29 06:03:24 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C92116A4CE for ; Wed, 29 Dec 2004 06:03:24 +0000 (GMT) Received: from straycat.dhs.org (h0050da134090.ne.client2.attbi.com [24.60.174.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1A7C43D2D for ; Wed, 29 Dec 2004 06:03:23 +0000 (GMT) (envelope-from tmclaugh@sdf.lonestar.org) Received: from compass.straycat.dhs.org (compass.straycat.dhs.org [192.168.1.32]) by straycat.dhs.org (8.13.0/8.13.0) with ESMTP id iBT63RK8023293; Wed, 29 Dec 2004 01:03:28 -0500 (EST) From: Tom McLaughlin To: Chris Pepper In-Reply-To: References: Content-Type: text/plain Date: Wed, 29 Dec 2004 01:03:45 -0500 Message-Id: <1104300225.858.41.camel@compass.straycat.dhs.org> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: portupgrade: Insert date into log filename? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2004 06:03:24 -0000 On Wed, 2004-12-29 at 00:44 -0500, Chris Pepper wrote: > I'd like to insert the date into the -l argument > automatically -- is there a token I can use which would be comparable > to `date "+%Y-%m-%d-%H-%M"` in pkgtools.conf? > > > Thanks, > > > Chris Pepper Here's what I do in pkgtools.conf since it is really useful: # -*- ruby -*- # # pkgtools.conf - the configuration file for the pkgtools suite # # $Idaemons: /home/cvs/pkgtools/etc/pkgtools.conf,v 1.32 2003/10/19 11:56:30 knu Exp $ require 'date' # PORTUPGRADE_ARGS: string # # This sets the default options passed to portupgrade(1). # # e.g.: PORTUPGRADE_ARGS = ENV['PORTUPGRADE'] || \ '-v -D -l /var/tmp/portupgrade.results_' + \ DateTime.now.strftime("%Y%m%d-%H:%M:%S") + ' ' + \ '-L /var/tmp/portupgrade/%s::%s.log' # PORTUPGRADE_ARGS = ENV['PORTUPGRADE'] end Tom -- BSD# Project - Porting Mono to FreeBSD http://forge.novell.com/modules/xfmod/project/?bsd-sharp