Bug 33499

Summary: Doc error in src/UPDATING doc or me stupid
Product: Base System Reporter: 3d <3d>
Component: confAssignee: Warner Losh <imp>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description 3d freebsd_committer freebsd_triage 2002-01-03 00:00:01 UTC
The src/UPDATING document contains this paragraph:

        To just build a kernel when you know that it won't mess you up
	--------------------------------------------------------------
	cd src/sys/{i386,alpha}/conf
	config KERNEL_NAME_HERE			[1]
	cd ../../compile/KERNEL_NAME_HERE
	make depend
	make
	make install	
	
	[1] If in doubt, -r might help here.

This note confuses me, as I can't find a -r option
for config.

Fix: 

Was perhaps "-d" meant?

Happy new year to all BSDers!
Marc
How-To-Repeat: Look at src/UPDATING

  http://www.freebsd.org/cgi/cvsweb.cgi/src/UPDATING?rev=1.187&content-type=text/x-cvsweb-markup

compare with source

  http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/config/main.c?rev=1.54&content-type=text/x-cvsweb-markup

  int
  main(int argc, char **argv)
  {
    /* .. */
	while ((ch = getopt(argc, argv, "d:gp")) != -1)
		switch (ch) {
		case 'd':
			if (*destdir == '\0')
				strlcpy(destdir, optarg, sizeof(destdir));
			else
				errx(2, "directory already set");
			break;
		case 'g':
			debugging++;
			break;
		case 'p':
			profiling++;
			break;
		case '?':
		default:
			usage();
		}
	argc -= optind;
    /* .. */
  }

I can't spot it.
Comment 1 Andy Farkas 2002-01-03 05:28:10 UTC
On Wed, 2 Jan 2002, Marc van Woerkom wrote:

> 	[1] If in doubt, -r might help here.
>
> This note confuses me, as I can't find a -r option
> for config.

There is another typo present in all branches:

 [6] From the bootblocks, boot -s, and then do
		fsck -p
		mount -u /
		mount -a
		cd /usr/src
		adjkerntz -i		# if COMS is wall time
                                             ^^^^

--

 :{ andyf@speednet.com.au

        Andy Farkas
    System Administrator
   Speednet Communications
 http://www.speednet.com.au/
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2002-01-06 19:44:34 UTC
Responsible Changed
From-To: freebsd-bugs->imp


Over to the maintainer.
Comment 3 Warner Losh freebsd_committer freebsd_triage 2002-01-06 20:19:11 UTC
State Changed
From-To: open->closed

fixed.  There's no -r in current, only stable.