RE: script entry to finding the version after a cvsup

From: Paul Hamilton (paul_at_bdug.org.au)
Date: 06/02/04

  • Next message: Thomas May: "port problem with asterisk"
    To: "Kent Stewart" <kstewart@owt.com>, <freebsd-questions@freebsd.org>
    Date: Wed, 2 Jun 2004 21:23:42 +0800
    
    

    Hi Kent,

    Thanks for that tip off. After lots of digging around in google, I found
    this site:

    http://simon.nitro.dk/freebsd-tips.php

    that mentions how to use script: newvers.sh

    grep -E 'BRANCH|REVISION' /usr/src/sys/conf/newvers.sh

    Cool.

    Cheers,

    paul

    -----Original Message-----
    From: Kent Stewart [mailto:kstewart@owt.com]
    Sent: Wednesday, 2 June 2004 1:09 AM
    To: freebsd-questions@freebsd.org
    Cc: Paul Hamilton
    Subject: Re: script entry to finding the version after a cvsup

    On Tuesday 01 June 2004 06:55 am, Paul Hamilton wrote:
    > Hi,
    >
    > I have written a basic script to cvsup, buildworld and install the
    > new kernel-world etc. I have introduced some basic logging, so I can
    > track the time taken. Now I would like to track the version it was
    > before the upgrade (ie. uname -r ), and what it is after the upgrade.
    > Now, I can't use uname -r, because the server has to be restarted so
    > it can pick up the new kernel etc.
    >
    > So my question is, where can I find a entry in the downloaded
    > kernel/world source files that says that it is FreeBSD 4.9 p9 etc. I
    > can't use stable-supfile, because it only records the 'branch' that
    > is being upgraded, not the full version.
    >
    > Any clues?

    Look at
    /usr/src/sys/conf/newvers.sh

    Kent

    --
    Kent Stewart
    Richland, WA
    http://users.owt.com/kstewart/index.html
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Thomas May: "port problem with asterisk"

    Relevant Pages

    • Re: Quoting Problems for Shell Script
      ... > Solaris 8. ... It's a pretty basic script and I'm probably missing something ... > command straight in the script instead of calling it from a variable, ...
      (comp.unix.shell)
    • Re: Basic Script Needed
      ... I am looking for a basic script that will take a very large file and ... script that will merge the files back. ... use a thumb drive in my work envirornment now. ...
      (perl.beginners)
    • Cron
      ... I'm having a bit of a problem with cron under RH-9. ... a very basic script. ... execute from the command line, however it doesn't execute in the ...
      (RedHat)
    • Re: need a script or something..
      ... longer to make script but i am making it only once and who knows how many ... Here is a basic script that will do it for you. ... Set ObjShell = CreateObject ... Create a desktop shortcut that points to c:\Windows\CreateShortcut.vbs. ...
      (microsoft.public.windowsxp.general)
    • RE: Local Scripting
      ... For scripts try the script center at TechNet at microsoft. ... > I'm trying to write a basic script to run when they system starts up to ... > automatically map some network drives. ...
      (microsoft.public.windowsxp.basics)