laytool
program. This program uses a
cdrom.tcl script file to create the image file. This section
describes: All files and folders needed to create the image file are in the /cdrommaster folder named after the current version of the operating system.
To step through this section, you should have already set up your files, as explained in Preparing Your Title's Files for the Layout Process.
set
commands in the script. If a command is preceded by an initial hash sign
(#), it is considered a comment and won't execute.
Editing the cdrom.tcl File for the Simple
Image
To edit the cdrom.tcl file for first-time layout, follow these
steps:
Note: The cdrom.tcl file is commented extensively; if you pay
attention to the comments, you should find editing the file quite easy.
Table 1: Variable settings for simple image creation. -------------------------------------------------------- Variable |Setting -------------------------------------------------------- imagefile |Pathname of a cdrom.image file to be |created on a hard disk that has at least |640 MB space. -------------------------------------------------------- label |Set to "cd-rom" during initial testing of |the CD-ROM image. -------------------------------------------------------- takedirectory |Pathname of the /takeme folder that |contains the title. -------------------------------------------------------- megabytes |Rule of Thumb: Use 110% of the size of |the /takeme folder (with your executable |and data files), and use that number as |the number of megabytes. If you allocate |too little, the layout process |terminates. If you allocate too much, the |process takes longer but there won't be |other problems. The number of blocks must |be a multiple of 16.The number of |kilobytes must be a multiple of 32. -------------------------------------------------------- directoryavata|The number of directory avatars defaults rs |to 3 and may be safely reduced to 2. -------------------------------------------------------- rootavatars |The number of root avatars defaults to 7 |and may be safely reduced to 2. -------------------------------------------------------- labelavatars |The number of label avatars defaults to |2, and must not be changed. --------------------------------------------------------
Creating the Simple Image
To create a CD-ROM image using the layout tool, follow these steps:
The /cdrommaster/_version_ folder contains the /takeme folder with your executables and data.
laytool < cdrom.tcl
and press the Enter key (not
the Return key).
After you've started the image creation process, the layout tool does the following:
At the end of the process, the MPW shell should display the line "layout successful."
If you don't see the line "layout successful," or if something else goes wrong:
alias boot /cd-rom
This sets the alias boot
to /cd-rom
. In
turn, any pathname in the application that contains $boot
will properly reference the files on the CD-ROM.
$boot/launchme
The Debugger runs your title from the image file and you can perform the first round of testing.