Re: A smarter mergemaster

From: Ashley Moran (work_at_ashleymoran.me.uk)
Date: 09/30/05

  • Next message: Daniel O'Connor: "Re: A smarter mergemaster"
    Date: Fri, 30 Sep 2005 15:20:45 +0100
    To: freebsd-hackers@freebsd.org
    
    

    Daniel O'Connor wrote:
    > On Friday 30 September 2005 18:23, Ashley Moran wrote:
    >
    > It sure would be nice :)
    > One thing would be to have automatically fetched etc directories so when you
    > ran it for the first time it would grab a release version of etc for you :)
    > Hmm.. I'll try and add that if I get some time I think!
    >

    Funny you should say that... I had a crack at something similar myself
    (see below). But I was hampered by the fact that

    a) I had never used CVS before (we use <whisper>VSS</whisper> here but
    I'm moving it all to SVN), and
    b) I have no idea how the FreeBSD build process works
    (I'm a hardcore hacker lol)

    Unfortunately it seems that config files for the subsystems (eg SSH) are
    stored separately in the CVS tree and I didn't have time to work out
    where they live.

    While we're on the subject, how do you handle the DB files? I don't see
    any special mention of them in the man pages. When I last etcmerged I
    glossed over them and haven't had any login problems since.

    Ashley

    Here is my effort:

    #!/bin/sh
    # takes one argument: name of the tag to get from CVS

    cd /var/db

    # clear out any previous files
    rm -rf etc

    # fetch new etc files from cvs
    export CVSROOT=:pserver:anoncvs:anoncvs@anoncvs.fr.FreeBSD.org:/home/ncvs
    cvs login
    cvs -QR export -r$1 etc
    cvs logout

    cd etc

    # local adjustment
    mv etc.i386/ttys .

    # clear out the other platform-specific files
    rm -r etc.*
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Daniel O'Connor: "Re: A smarter mergemaster"

    Relevant Pages

    • Re: IDE for C++: KDevelop vs Emacs vs Other
      ... Daniel> replacing emacs's keyboard interface with a GUI. ... I know one VI user who uses Emacs only for one thing: ... Think about CVS. ... Daniel> has to be done in LISP, ...
      (comp.os.linux.development.apps)
    • Re: better disk reliability on a desktop machine
      ... you can also stick things like config files into ... > version control (like CVS, subversion, etc), and then back that up via the ... Be careful about CVS and symbolic links. ...
      (freebsd-questions)
    • Re: Unable to install FreeBSD from external USB cdrom
      ... systems of mine, however, the code has not yet made it into CVS. ... spliced it into a 6.2 miniboot ISO and it worked. ... Daniel O'Connor software and network engineer ... for Genesis Software - http://www.gsoft.com.au ...
      (freebsd-stable)