In order to be able to neatly track NetBSD sources, and easily import and patch more, there is a system to retrieve NetBSD sources using cvs, and automatically generate patch files from the current Minix code with respect to the current NetBSD code.
Install the cvs
package.
pkgin in cvs
After running the following command, the original NetBSD sources will be stored, for reference, in src/nbsdsrc.
cd /usr/src/releasetools && make nbsd_fetch
Using nbsd.config, this fetches the right revision of the imported hierarchies.
To update each hierarchy's patch file (minix-port.patch):
make nbsd_diff
if [ “$-” : '.*i.*
' which takes advantage of expr
and test
/[
being the same with MINIX port of ash(1)
, not so with NetBSD