Contributed by jose on from the smoother-changes dept.
"These are two small scripts I wrote to automate the updating of OpenBSD.A pretty interesting set of tools. Perhaps some features of related tools we posted about a few days ago , along with things like mergemaster, could all be integrated.openup.sh handles CVS fetching (you can choose to get -stable or -current), kernel compiling and system building, including the `make release' process. This is similar to FenderQ's tool ( easybakeoven88 ), with some borrowed functionality. http://www.rootshell.be/~andre/software/openup.sh
updiff.sh compares the files under /etc and /var with newly installed ones on an alternate location, showing diffs and giving options to copy the new file over the old one or skip it and edit it manually later. http://www.rootshell.be/~andre/software/updiff.sh "
(Comments are closed)
By Michael Anuzis () on
Comments
By Andre Nathan () on www.rootshell.be/~andre
Comments
By Anonymous Coward () on
By FenderQ () on
By n8d0g () nate at totallybooty dot com on http://www.totallybooty.com/~nate
# ./openup.sh
./openup.sh[102]: syntax error: `else' unexpected
Comments
By FenderQ () on
Comments
By Andre Nathan () on
it's already corrected on the page.
By Anonymous Coward () on
You probably figured it out already, but if not then
just change line 101 from:
cp /usr/src/etc/etc.`machine`/MAKEDEV ./ && ./MAKEDEV all &&
to:
cp /usr/src/etc/etc.`machine`/MAKEDEV ./ && ./MAKEDEV all
By Matt () on
It would be great if this could also be integrated with something like fastest cvsup, a perl script. It's currently a little freebsd centric, but it does operate on openbsd. (http://www.freshports.org/sysutils/fastest_cvsup/)
That way we could find the fastest cvs server near your location, get the appropriate src, and make a compile a whole new system within one tool. Make it into a port and suddenly we have a badass tool.
Comments
By Matt () on
http://fastest-cvsup.sourceforge.net/
By Troll () on
By Anonymous Coward () on
in /tmp
get etcNN.tar.gz
tar zxvf etcNN.tar.gz
cd /tmp/etc
for i in * ; do
echo $i
diff $i /etc/$i | more
echo $i
read
done
then in another window, copy files that have changed or make the edits. Sure Mergemaster may do the same thing, but this approach is fast.
the one window that is comparing the changed files shows output like this
afs
afs
amd
amd
and so on until there is a change.
If you wnated to you could compare etc with the default etc tarball BEFORE you do the upgrade to see what changed.
Works for me.