Subject: Re: To build i386 -current as of yesterday via build.sh -m/etc on i386...
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Alan Barrett <apb@cequrux.com>
List: current-users
Date: 01/20/2006 21:39:59
On Fri, 20 Jan 2006, Steven M. Bellovin wrote:
> That's good to know and I'll flag your note so I can find it easily in 
> the future.  That said, I'll repeat my original suggestion: is there 
> any reason it shouldn't be a target in build.sh, to be used after 
> 'distribution'?

You could try this patch, which has been in my private tree for
some time.  Sorry there's no update to BUILDING.

--apb (Alan Barrett)

=== build.sh
==================================================================
--- build.sh	(revision 41)
+++ build.sh	(revision 42)
@@ -128,6 +128,7 @@
 	do_sets=false
 	do_sourcesets=false
 	do_syspkgs=false
+	do_iso_image=false
 	do_params=false
 
 	# Create scratch directory
@@ -377,6 +378,7 @@
 			DESTDIR should be populated beforehand.
     sourcesets          Create source sets in RELEASEDIR/source/sets.
     syspkgs             Create syspkgs in RELEASEDIR/MACHINE/binary/syspkgs.
+    iso-image           Create CD-ROM image in RELEASEDIR/MACHINE/installation.
     params              Display various make(1) parameters.
 
  Options:
@@ -619,6 +621,10 @@
 		makewrapper|obj|tools|build|distribution|release|sets|sourcesets|syspkgs|params)
 			;;
 
+		iso-image)
+			op=iso_image	# used as part of a variable name
+			;;
+
 		kernel=*|releasekernel=*)
 			arg=${op#*=}
 			op=${op%%=*}
@@ -1039,6 +1045,14 @@
 			statusmsg "Successful make ${op}"
 			;;
 
+		iso-image)
+			${runcmd} cd etc
+			${runcmd} "${makewrapper}" ${parallel} ${op} ||
+			    bomb "Failed to make ${op}"
+			${runcmd} cd "${TOP}"
+			statusmsg "Successful make ${op}"
+			;;
+
 		kernel=*)
 			arg=${op#*=}
 			buildkernel "${arg}"