From owner-freebsd-stable Sun Jul 1 16:38:50 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mtiwmhc25.worldnet.att.net (mtiwmhc25.worldnet.att.net [204.127.131.50]) by hub.freebsd.org (Postfix) with ESMTP id 98C0037B401 for ; Sun, 1 Jul 2001 16:38:47 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.54]) by mtiwmhc25.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010701233846.CLPD5127.mtiwmhc25.worldnet.att.net@worldnet.att.net>; Sun, 1 Jul 2001 23:38:46 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 7EAC219313; Sun, 1 Jul 2001 19:42:35 -0400 (EDT) Date: Sun, 1 Jul 2001 19:42:35 -0400 From: parv To: Valentin Nechayev , Bill Moran , Chris BeHanna , FreeBSD-Stable Subject: Re: how to check last cvsup time (was 'Re: releng4 no longer -STABLE?') Message-ID: <20010701194235.A765@moo.holy.cow> Mail-Followup-To: Valentin Nechayev , Bill Moran , Chris BeHanna , FreeBSD-Stable References: <20010622003432.D1597@iv.nn.kiev.ua> <3B326B4B.2ABF72D9@iowna.com> <20010622204515.B406@iv.nn.kiev.ua> <20010701192908.A632@moo.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010701192908.A632@moo.holy.cow>; from parv_@yahoo.com on Sun, Jul 01, 2001 at 07:29:08PM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG once i blurted in my inifite wisdom... > > for checking the cvsup update date after the fact, below is my script > which uses cvsup configuration file namesake variables... > > ------------------------ > #!/bin/sh > > # set variables > # > > BASE=/usr/local/etc/cvsup > MODULE=src-all > TAG=RELENG_4 > > # after variables are set.. > # > # 1: print 1st, 2d, & 7th field from the file > # 2: get only those lines that begin w/ "C", since only these lines > # have date recorded > # 3: print only the datetime > # 4a: make field separator to be "." instead of default (white)space, > # and then sort by the year (1st field). > # 4b: for those paranoid, remove '#' from the fourth line; currently > # it takes only extra 0.2-0.3 seconds, for my setup. > > awk '{ print $1, $2, $7 }' ${BASE}/sup/${MODULE}/checkouts.cvs\:${TAG} | > grep '^C ' | > awk '{print $3}' | > sort -bfi -t '.' -n -k 1 #-n -k 2 -n -k 3 -n -k 4 -n -k 5 -n -k 6 > ------------------------ > oops, that's rather inefficient ... i was in the "creative" process when i came up /that/ version. below is much more concise; please change comments accordingly. ------------------------ #!/bin/sh BASE=/usr/local/etc/cvsup MODULE=src-all TAG=RELENG_4 awk '/^C/ { print $7 }' ${BASE}/sup/${MODULE}/checkouts.cvs\:${TAG} | sort -bfi -t '.' -n -k 1 #-n -k 2 -n -k 3 -n -k 4 -n -k 5 -n -k 6 ------------------------ - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message