Date: Sun, 1 Jul 2001 19:42:35 -0400 From: parv <parv_@yahoo.com> To: Valentin Nechayev <netch@iv.nn.kiev.ua>, Bill Moran <wmoran@iowna.com>, Chris BeHanna <behanna@zbzoom.net>, FreeBSD-Stable <stable@FreeBSD.ORG> Subject: Re: how to check last cvsup time (was 'Re: releng4 no longer -STABLE?') Message-ID: <20010701194235.A765@moo.holy.cow> In-Reply-To: <20010701192908.A632@moo.holy.cow>; from parv_@yahoo.com on Sun, Jul 01, 2001 at 07:29:08PM -0400 References: <LAW2-F39E17iPMenEdG0000e5f6@hotmail.com> <Pine.BSF.4.32.0106210021510.3601-100000@topperwein.dyndns.org> <20010622003432.D1597@iv.nn.kiev.ua> <3B326B4B.2ABF72D9@iowna.com> <20010622204515.B406@iv.nn.kiev.ua> <20010701192908.A632@moo.holy.cow>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010701194235.A765>