Date: Sun, 1 Jul 2001 19:29:08 -0400 From: parv <parv_@yahoo.com> To: Valentin Nechayev <netch@iv.nn.kiev.ua> Cc: Bill Moran <wmoran@iowna.com>, Chris BeHanna <behanna@zbzoom.net>, FreeBSD-Stable <stable@FreeBSD.ORG> Subject: how to check last cvsup time (was 'Re: releng4 no longer -STABLE?') Message-ID: <20010701192908.A632@moo.holy.cow> In-Reply-To: <20010622204515.B406@iv.nn.kiev.ua>; from netch@iv.nn.kiev.ua on Fri, Jun 22, 2001 at 08:45:15PM %2B0300 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010701192908.A632>
