From owner-freebsd-stable Sun Jul 1 16:25:30 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mtiwmhc23.worldnet.att.net (mtiwmhc23.worldnet.att.net [204.127.131.48]) by hub.freebsd.org (Postfix) with ESMTP id 5EB5437B401 for ; Sun, 1 Jul 2001 16:25:25 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.54]) by mtiwmhc23.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010701232518.RMXC1777.mtiwmhc23.worldnet.att.net@worldnet.att.net>; Sun, 1 Jul 2001 23:25:18 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 711F019313; Sun, 1 Jul 2001 19:29:08 -0400 (EDT) Date: Sun, 1 Jul 2001 19:29:08 -0400 From: parv To: Valentin Nechayev Cc: Bill Moran , Chris BeHanna , FreeBSD-Stable Subject: how to check last cvsup time (was 'Re: releng4 no longer -STABLE?') Message-ID: <20010701192908.A632@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010622204515.B406@iv.nn.kiev.ua>; from netch@iv.nn.kiev.ua on Fri, Jun 22, 2001 at 08:45:15PM +0300 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 so, Valentin Nechayev shared this in my lifetime... > Thu, Jun 21, 2001 at 17:46:51, wmoran (Bill Moran) wrote about "Re: releng4 no longer -STABLE???": > ... > > > > ... How would one know the exact > > cvsup date if he hadn't recorded it? Does cvsup keep a log? > > I use script: > > #!/bin/sh > ( > date > fgrep date= /etc/stable-supfile > cvsup -g -L 2 /etc/stable-supfile > date > ) 2>&1 | tee /var/log/sup.src.`date +%s` > > (pathnames may differ) > > A few last cvsup logs are kept for seeing exact date. > > Also, on some machines src/sys/conf/newvers.sh is manually patched > every time to produce exact date/time in `uname -r' output. 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 ------------------------ -- so, do you like word games or scrabble? - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message