Kernel configging (was Re: -CURRENT buildkernel failure)
Peter Jeremy
peterjeremy at optushome.com.au
Fri Nov 30 12:55:38 PST 2007
On Thu, Nov 29, 2007 at 04:07:53PM -0600, Matthew D. Fuller wrote:
>What I do do these days, though, is use my choice of the current gen
>of distributed VCS's (though it's almost an insultingly simple
>use-case ;) to keep copies of GENERIC in one branch, and derive my
>config from that.
Since I use bits of NOTES as well as GENERIC, I find it easier to
include the current $FreeBSD lines from GENERIC and both NOTES files
in my local config file. I then have a shell script that extracts the
$FreeBSD lines from my config file and cvs diffs them against the
current GENERIC/NOTES versions. I then update my config file with any
new $FreeBSD lines and include or ignore the actual config changes as
appropriate.
Given a list of local config files, the script is basically:
cd /usr/src
while file=shift; do
echo "######### Differences in $file"
awk '$2 == "$FreeBSD:" { print substr($3, 5, length($3) - 6), $4 }' $file |
while read x ver; do
cvs -R diff -u -r$ver $x
done
done
--
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071130/778866ea/attachment.pgp
More information about the freebsd-current
mailing list