templeos-info/public/Wb/Demo/AcctExample/TOS/TOSDistro.HC.HTML

419 lines
44 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre id="content">
<a name="l1"></a><span class=cF2>//The CFG defines are </span><a href="/Wb/Demo/AcctExample/TOS/TOSCfg.HC.HTML#l1"><span class=cF4>~/TOS/TOSCfg.HC</span></a><span class=cF2>.</span><span class=cF0>
<a name="l2"></a>
<a name="l3"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>&quot;Misc/TOS/Distro&quot;</span><span class=cF0>
<a name="l4"></a>
<a name="l5"></a>#</span><span class=cF1>define</span><span class=cF0> MAKE_LITE 1
<a name="l6"></a>#</span><span class=cF1>define</span><span class=cF0> MAKE_DBG 0
<a name="l7"></a>#</span><span class=cF1>define</span><span class=cF0> MAKE_STAFF 1
<a name="l8"></a>
<a name="l9"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> TOSGetDrv()
<a name="l10"></a>{</span><span class=cF2>//Pmt for drv let.</span><span class=cF0>
<a name="l11"></a> </span><span class=cF9>I64</span><span class=cF0> res;
<a name="l12"></a> </span><span class=cF6>&quot;Drive (%s):&quot;</span><span class=cF0>,TOS_HDS;
<a name="l13"></a> res=</span><span class=cF5>Let2Let</span><span class=cF0>(</span><span class=cF5>GetChar</span><span class=cF0>);
<a name="l14"></a> </span><span class=cF6>'\n'</span><span class=cF0>;
<a name="l15"></a> </span><span class=cF1>return</span><span class=cF0> res;
<a name="l16"></a>}
<a name="l17"></a>
<a name="l18"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> TOSBootHDIns(</span><span class=cF1>U8</span><span class=cF0> drv_let=0)
<a name="l19"></a>{</span><span class=cF2>//Make Compiler and Kernel. Reinstall Kernel.</span><span class=cF0>
<a name="l20"></a> drv_let=</span><span class=cF5>Let2Let</span><span class=cF0>(drv_let);
<a name="l21"></a> </span><span class=cF5>In</span><span class=cF0>(TOS_CFG);
<a name="l22"></a> </span><span class=cF5>BootHDIns</span><span class=cF0>(drv_let);
<a name="l23"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrOcc</span><span class=cF7>(</span><span class=cF0>TOS_MASTER_BOOT_DRVS,drv_let</span><span class=cF7>)</span><span class=cF0>)
<a name="l24"></a> </span><span class=cF5>BootMHDIns</span><span class=cF0>(drv_let);
<a name="l25"></a>}
<a name="l26"></a>
<a name="l27"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> TOSCopyDrv(</span><span class=cF1>U8</span><span class=cF0> src,</span><span class=cF1>U8</span><span class=cF0> dst)
<a name="l28"></a>{</span><span class=cF2>//Fmt dst and copy entire drv.</span><span class=cF0>
<a name="l29"></a> </span><span class=cF1>U8</span><span class=cF0> buf_s[</span><span class=cF3>STR_LEN</span><span class=cF0>],buf_d[</span><span class=cF3>STR_LEN</span><span class=cF0>];
<a name="l30"></a> src=</span><span class=cF5>Let2Let</span><span class=cF0>(src);
<a name="l31"></a> dst=</span><span class=cF5>Let2Let</span><span class=cF0>(dst);
<a name="l32"></a>
<a name="l33"></a> </span><span class=cF1>if</span><span class=cF0> (dst==</span><span class=cF6>'D'</span><span class=cF0>)
<a name="l34"></a> </span><span class=cF5>Fmt</span><span class=cF0>(dst,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_FAT32</span><span class=cF0>);
<a name="l35"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l36"></a> </span><span class=cF5>Fmt</span><span class=cF0>(dst,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_REDSEA</span><span class=cF0>);
<a name="l37"></a>
<a name="l38"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(buf_s,</span><span class=cF6>&quot;%c:/&quot;</span><span class=cF0>,src);
<a name="l39"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(buf_d,</span><span class=cF6>&quot;%c:/&quot;</span><span class=cF0>,dst);
<a name="l40"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(buf_s,buf_d);
<a name="l41"></a>
<a name="l42"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l43"></a> </span><span class=cF5>Drv</span><span class=cF0>(dst);
<a name="l44"></a> TOSBootHDIns(dst);
<a name="l45"></a>}
<a name="l46"></a>
<a name="l47"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> TOSPmtAndCopyDrv()
<a name="l48"></a>{</span><span class=cF2>//Pmt for drv lets. Then, Fmt dst and copy entire drv.</span><span class=cF0>
<a name="l49"></a> </span><span class=cF9>I64</span><span class=cF0> src,dst;
<a name="l50"></a> </span><span class=cF6>&quot;$RED$\nCopy Src Drive:\n$FG$&quot;</span><span class=cF0>;
<a name="l51"></a> src=TOSGetDrv;
<a name="l52"></a> </span><span class=cF6>&quot;$RED$\nCopy Dst Drive:\n$FG$&quot;</span><span class=cF0>;
<a name="l53"></a> dst=TOSGetDrv;
<a name="l54"></a> TOSCopyDrv(src,dst);
<a name="l55"></a>}
<a name="l56"></a>
<a name="l57"></a></span><span class=cF1>U0</span><span class=cF0> DistroPrep()
<a name="l58"></a>{
<a name="l59"></a> </span><span class=cF5>AOnceFlush</span><span class=cF0>; </span><span class=cF2>//Don't want in Registry</span><span class=cF0>
<a name="l60"></a> </span><span class=cF5>OnceFlush</span><span class=cF0>;
<a name="l61"></a>
<a name="l62"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Home/Demo*&quot;</span><span class=cF0>);
<a name="l63"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;/Home/*Tmp.DD.Z&quot;</span><span class=cF0>);
<a name="l64"></a>
<a name="l65"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;/Tmp&quot;</span><span class=cF0>);
<a name="l66"></a> </span><span class=cF5>DirMk</span><span class=cF0>(</span><span class=cF6>&quot;/Tmp&quot;</span><span class=cF0>);
<a name="l67"></a> </span><span class=cF5>DirMk</span><span class=cF0>(</span><span class=cF6>&quot;/Tmp/ScrnShots&quot;</span><span class=cF0>);
<a name="l68"></a>
<a name="l69"></a> </span><span class=cF5>Touch</span><span class=cF0>(</span><span class=cF6>&quot;/PersonalMenu.DD.Z&quot;</span><span class=cF0>,</span><span class=cF6>&quot;+T&quot;</span><span class=cF0>);
<a name="l70"></a> </span><span class=cF5>Touch</span><span class=cF0>(</span><span class=cF6>&quot;/Home/PersonalMenu.DD.Z&quot;</span><span class=cF0>,</span><span class=cF6>&quot;+T&quot;</span><span class=cF0>);
<a name="l71"></a>
<a name="l72"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;/Demo/AcctExample&quot;</span><span class=cF0>);
<a name="l73"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>,</span><span class=cF6>&quot;/Demo/AcctExample&quot;</span><span class=cF0>);
<a name="l74"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;/Demo/AcctExample/TAD&quot;</span><span class=cF0>);
<a name="l75"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;/Demo/AcctExample/Sup1&quot;</span><span class=cF0>);
<a name="l76"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;/Demo/AcctExample/Sup2&quot;</span><span class=cF0>);
<a name="l77"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;/Demo/AcctExample/Sup3&quot;</span><span class=cF0>);
<a name="l78"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Demo/AcctExample/Test*&quot;</span><span class=cF0>);
<a name="l79"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>FileFind</span><span class=cF7>(</span><span class=cF6>&quot;~/Sup1/Sup1Utils/SortHeaders.HC.Z&quot;</span><span class=cF7>)</span><span class=cF0>)
<a name="l80"></a> </span><span class=cF5>ExeFile</span><span class=cF0>(</span><span class=cF6>&quot;~/Sup1/Sup1Utils/SortHeaders.HC.Z&quot;</span><span class=cF0>);
<a name="l81"></a>
<a name="l82"></a> </span><span class=cF5>CursorRem</span><span class=cF0>(</span><span class=cF6>&quot;/*&quot;</span><span class=cF0>);
<a name="l83"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;/Demo/*.BI*&quot;</span><span class=cF0>);
<a name="l84"></a> </span><span class=cF5>S2T</span><span class=cF0>(</span><span class=cF6>&quot;/*&quot;</span><span class=cF0>,</span><span class=cF6>&quot;+r+S&quot;</span><span class=cF0>);
<a name="l85"></a> </span><span class=cF5>DocOpt</span><span class=cF0>(</span><span class=cF6>&quot;/*&quot;</span><span class=cF0>,</span><span class=cF6>&quot;+R&quot;</span><span class=cF0>);
<a name="l86"></a> </span><span class=cF5>Move</span><span class=cF0>(</span><span class=cF3>ACD_DEF_FILENAME</span><span class=cF0>,</span><span class=cF3>ACD_DEF_FILENAME_Z</span><span class=cF0>);
<a name="l87"></a>}
<a name="l88"></a>
<a name="l89"></a></span><span class=cF1>U0</span><span class=cF0> DbgDistroFilePrep()
<a name="l90"></a>{
<a name="l91"></a> </span><span class=cF9>CBlkDev</span><span class=cF0> *bd;
<a name="l92"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>Let2Drv</span><span class=cF7>(</span><span class=cF6>'A'</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l93"></a> </span><span class=cF5>In</span><span class=cF0>(CFG_DBG_DISTRO </span><span class=cF6>&quot;\n&quot;</span><span class=cF0>);
<a name="l94"></a> </span><span class=cF5>Mount</span><span class=cF0>;
<a name="l95"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l96"></a> bd=</span><span class=cF5>Let2BlkDev</span><span class=cF0>(</span><span class=cF6>'A'</span><span class=cF0>);
<a name="l97"></a> </span><span class=cF5>Fmt</span><span class=cF0>(</span><span class=cF6>'A'</span><span class=cF0>,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_REDSEA</span><span class=cF0>);
<a name="l98"></a>
<a name="l99"></a> </span><span class=cF5>DirMk</span><span class=cF0>(</span><span class=cF6>&quot;A:/Compiler&quot;</span><span class=cF0>);
<a name="l100"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Compiler/Compiler.BIN.Z&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Compiler&quot;</span><span class=cF0>);
<a name="l101"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Compiler/OpCodes.DD.Z&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Compiler&quot;</span><span class=cF0>);
<a name="l102"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Compiler/CompilerA.HH.Z&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Compiler&quot;</span><span class=cF0>);
<a name="l103"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Compiler/CompilerB.HH.Z&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Compiler&quot;</span><span class=cF0>);
<a name="l104"></a>
<a name="l105"></a> </span><span class=cF5>DirMk</span><span class=cF0>(</span><span class=cF6>&quot;A:/Kernel&quot;</span><span class=cF0>);
<a name="l106"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Kernel/*.HH*&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Kernel&quot;</span><span class=cF0>);
<a name="l107"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/Kernel/BlkDev&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Kernel/BlkDev&quot;</span><span class=cF0>);
<a name="l108"></a>
<a name="l109"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Home/Sup1/Sup1Distro/DbgStartOS.HC.Z&quot;</span><span class=cF0>,</span><span class=cF6>&quot;A:/StartOS.HC.Z&quot;</span><span class=cF0>);
<a name="l110"></a>
<a name="l111"></a> </span><span class=cF5>DirMk</span><span class=cF0>(</span><span class=cF6>&quot;A:/Adam&quot;</span><span class=cF0>);
<a name="l112"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Home/Sup1/Sup1Distro/DbgMakeAdam.HC.Z&quot;</span><span class=cF0>,</span><span class=cF6>&quot;A:/Adam/MakeAdam.HC.Z&quot;</span><span class=cF0>);
<a name="l113"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Home/Sup1/Sup1Distro/DbgMount.HC.Z&quot;</span><span class=cF0>,</span><span class=cF6>&quot;A:/Adam&quot;</span><span class=cF0>);
<a name="l114"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Adam/AExts.HC.Z&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Adam&quot;</span><span class=cF0>);
<a name="l115"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Adam/AMath.HC.Z&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Adam&quot;</span><span class=cF0>);
<a name="l116"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Adam/Training.HC.Z&quot;</span><span class=cF0>,</span><span class=cF6>&quot;A:/Adam&quot;</span><span class=cF0>);
<a name="l117"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Adam/AMem.HC.Z&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Adam&quot;</span><span class=cF0>);
<a name="l118"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;C:/Adam/TaskRep.HC.Z&quot;</span><span class=cF0>, </span><span class=cF6>&quot;A:/Adam&quot;</span><span class=cF0>);
<a name="l119"></a>
<a name="l120"></a> </span><span class=cF5>FileWrite</span><span class=cF0>(</span><span class=cF6>&quot;C:&quot;</span><span class=cF0> CFG_DBG_DISTRO_FILE,
<a name="l121"></a> bd-&gt;RAM_dsk,</span><span class=cF7>(</span><span class=cF0>bd-&gt;max_blk+1</span><span class=cF7>)</span><span class=cF0>&lt;&lt;</span><span class=cF3>BLK_SIZE_BITS</span><span class=cF0>);
<a name="l122"></a>}
<a name="l123"></a>
<a name="l124"></a>
<a name="l125"></a></span><span class=cF1>U0</span><span class=cF0> StdDistroPrep()
<a name="l126"></a>{
<a name="l127"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l128"></a> DistroPrep;
<a name="l129"></a> </span><span class=cF5>In</span><span class=cF0>(</span><span class=cF3>STD_DISTRO_DVD_CFG</span><span class=cF0>);
<a name="l130"></a> </span><span class=cF5>BootDVDIns</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l131"></a> </span><span class=cF5>Fmt</span><span class=cF0>(</span><span class=cF6>'B'</span><span class=cF0>,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_REDSEA</span><span class=cF0>);
<a name="l132"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR);
<a name="l133"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/&quot;</span><span class=cF0>,TOS_DISTRO_DIR </span><span class=cF6>&quot;/&quot;</span><span class=cF0>);
<a name="l134"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>);
<a name="l135"></a> </span><span class=cF5>DirMk</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>);
<a name="l136"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/&quot;</span><span class=cF0> </span><span class=cF3>KERNEL_BIN_C</span><span class=cF0>);
<a name="l137"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR</span><span class=cF0> </span><span class=cF6>&quot;/OldMBR.BIN.C&quot;</span><span class=cF0>);
<a name="l138"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR</span><span class=cF0> </span><span class=cF6>&quot;/BootMHD2.BIN.C&quot;</span><span class=cF0>);
<a name="l139"></a>}
<a name="l140"></a></span><span class=cF1>U0</span><span class=cF0> MakeStdDistro()
<a name="l141"></a>{
<a name="l142"></a> StdDistroPrep;
<a name="l143"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(TOS_ISO_NAME,TOS_DISTRO_DIR,TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
<a name="l144"></a> </span><span class=cF5>DefinePrint</span><span class=cF0>(</span><span class=cF6>&quot;DD_TEMPLEOSCD_SIZE&quot;</span><span class=cF0>,
<a name="l145"></a> </span><span class=cF6>&quot;Download TempleOS V5.03 - Standard Distro (%0.1fMB)&quot;</span><span class=cF0>,
<a name="l146"></a> 0.1*</span><span class=cF7>(</span><span class=cF0>10*</span><span class=cF5>Size</span><span class=cF0>(TOS_ISO_NAME,</span><span class=cF6>&quot;+s&quot;</span><span class=cF0>)/1024/1024</span><span class=cF7>)</span><span class=cF0>);
<a name="l147"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l148"></a>}
<a name="l149"></a>
<a name="l150"></a></span><span class=cF1>U0</span><span class=cF0> LiteDistroPrep()
<a name="l151"></a>{
<a name="l152"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l153"></a> DistroPrep;
<a name="l154"></a> </span><span class=cF5>In</span><span class=cF0>(</span><span class=cF3>STD_DISTRO_DVD_CFG</span><span class=cF0>);
<a name="l155"></a> </span><span class=cF5>BootDVDIns</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l156"></a> </span><span class=cF5>Fmt</span><span class=cF0>(</span><span class=cF6>'B'</span><span class=cF0>,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_REDSEA</span><span class=cF0>);
<a name="l157"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR);
<a name="l158"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/&quot;</span><span class=cF0>,TOS_DISTRO_DIR </span><span class=cF6>&quot;/&quot;</span><span class=cF0>);
<a name="l159"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>);
<a name="l160"></a> </span><span class=cF5>DirMk</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>);
<a name="l161"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Apps&quot;</span><span class=cF0>);
<a name="l162"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Demo&quot;</span><span class=cF0>);
<a name="l163"></a> </span><span class=cF5>Copy</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Demo/Games/Talons.HC.Z&quot;</span><span class=cF0>,TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>);
<a name="l164"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/&quot;</span><span class=cF0> </span><span class=cF3>KERNEL_BIN_C</span><span class=cF0>);
<a name="l165"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR</span><span class=cF0> </span><span class=cF6>&quot;/OldMBR.BIN.C&quot;</span><span class=cF0>);
<a name="l166"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR</span><span class=cF0> </span><span class=cF6>&quot;/BootMHD2.BIN.C&quot;</span><span class=cF0>);
<a name="l167"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Adam/AutoComplete/ACDefs.DATA.Z&quot;</span><span class=cF0>);
<a name="l168"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Adam/AutoComplete/ACWords.DATA.Z&quot;</span><span class=cF0>);
<a name="l169"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Misc/Bible.TXT.Z&quot;</span><span class=cF0>);
<a name="l170"></a>}
<a name="l171"></a></span><span class=cF1>U0</span><span class=cF0> MakeLiteDistro()
<a name="l172"></a>{
<a name="l173"></a> LiteDistroPrep;
<a name="l174"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(TOS_ISO_NAME,TOS_DISTRO_DIR,TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
<a name="l175"></a> </span><span class=cF5>DefinePrint</span><span class=cF0>(</span><span class=cF6>&quot;DD_TEMPLEOSCD_SIZE&quot;</span><span class=cF0>,
<a name="l176"></a> </span><span class=cF6>&quot;Download TempleOS V5.03 - Standard Distro (%0.1fMB)&quot;</span><span class=cF0>,
<a name="l177"></a> 0.1*</span><span class=cF7>(</span><span class=cF0>10*</span><span class=cF5>Size</span><span class=cF0>(TOS_ISO_NAME,</span><span class=cF6>&quot;+s&quot;</span><span class=cF0>)/1024/1024</span><span class=cF7>)</span><span class=cF0>);
<a name="l178"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l179"></a>}
<a name="l180"></a>
<a name="l181"></a></span><span class=cF1>U0</span><span class=cF0> DbgDistroPrep()
<a name="l182"></a>{
<a name="l183"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l184"></a> DistroPrep;
<a name="l185"></a> DbgDistroFilePrep;
<a name="l186"></a> </span><span class=cF5>In</span><span class=cF0>(TOS_DVD_DBG_CFG);
<a name="l187"></a> </span><span class=cF5>BootDVDIns</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l188"></a> </span><span class=cF5>Fmt</span><span class=cF0>(</span><span class=cF6>'B'</span><span class=cF0>,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_REDSEA</span><span class=cF0>);
<a name="l189"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR);
<a name="l190"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/&quot;</span><span class=cF0>,TOS_DISTRO_DIR </span><span class=cF6>&quot;/&quot;</span><span class=cF0>);
<a name="l191"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>);
<a name="l192"></a> </span><span class=cF5>DirMk</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>);
<a name="l193"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/&quot;</span><span class=cF0> </span><span class=cF3>KERNEL_BIN_C</span><span class=cF0>);
<a name="l194"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR</span><span class=cF0> </span><span class=cF6>&quot;/OldMBR.BIN.C&quot;</span><span class=cF0>);
<a name="l195"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR</span><span class=cF0> </span><span class=cF6>&quot;/BootMHD2.BIN.C&quot;</span><span class=cF0>);
<a name="l196"></a>}
<a name="l197"></a></span><span class=cF1>U0</span><span class=cF0> MakeDbgDistro()
<a name="l198"></a>{
<a name="l199"></a> DbgDistroPrep;
<a name="l200"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(TOS_ISO_NAME,TOS_DISTRO_DIR,TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
<a name="l201"></a> </span><span class=cF5>DefinePrint</span><span class=cF0>(</span><span class=cF6>&quot;DD_TEMPLEOS_DBG_SIZE&quot;</span><span class=cF0>,
<a name="l202"></a> </span><span class=cF6>&quot;Download TempleOS V5.03 - Debug Distro (%0.1fMB)&quot;</span><span class=cF0>,
<a name="l203"></a> 0.1*</span><span class=cF7>(</span><span class=cF0>10*</span><span class=cF5>Size</span><span class=cF0>(TOS_ISO_NAME,</span><span class=cF6>&quot;+s&quot;</span><span class=cF0>)/1024/1024</span><span class=cF7>)</span><span class=cF0>);
<a name="l204"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l205"></a>}
<a name="l206"></a>
<a name="l207"></a></span><span class=cF1>U0</span><span class=cF0> StaffDistroPrep()
<a name="l208"></a>{
<a name="l209"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l210"></a> DistroPrep;
<a name="l211"></a> </span><span class=cF5>In</span><span class=cF0>(TOS_DVD_CFG);
<a name="l212"></a> </span><span class=cF5>BootDVDIns</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l213"></a> </span><span class=cF5>Fmt</span><span class=cF0>(</span><span class=cF6>'B'</span><span class=cF0>,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_REDSEA</span><span class=cF0>);
<a name="l214"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR);
<a name="l215"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/&quot;</span><span class=cF0>,TOS_DISTRO_DIR </span><span class=cF6>&quot;/&quot;</span><span class=cF0>);
<a name="l216"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home/Sup1&quot;</span><span class=cF0>);
<a name="l217"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home/Sup2&quot;</span><span class=cF0>);
<a name="l218"></a> </span><span class=cF5>DelTree</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/Home/Sup3&quot;</span><span class=cF0>);
<a name="l219"></a> </span><span class=cF5>Del</span><span class=cF0>(TOS_DISTRO_DIR </span><span class=cF6>&quot;/&quot;</span><span class=cF0> </span><span class=cF3>KERNEL_BIN_C</span><span class=cF0>);
<a name="l220"></a>}
<a name="l221"></a></span><span class=cF1>U0</span><span class=cF0> MakeStaffDistro()
<a name="l222"></a>{
<a name="l223"></a> StaffDistroPrep;
<a name="l224"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(TOS_ISO_NAME,TOS_DISTRO_DIR,TOS_DISTRO_DIR </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
<a name="l225"></a> </span><span class=cF5>DefinePrint</span><span class=cF0>(</span><span class=cF6>&quot;DD_TEMPLEOS_STAFF_SIZE&quot;</span><span class=cF0>,
<a name="l226"></a> </span><span class=cF6>&quot;Download TempleOS V5.03 - T.S. Company Internal Distro (%0.1fMB)&quot;</span><span class=cF0>,
<a name="l227"></a> 0.1*</span><span class=cF7>(</span><span class=cF0>10*</span><span class=cF5>Size</span><span class=cF0>(TOS_ISO_NAME,</span><span class=cF6>&quot;+s&quot;</span><span class=cF0>)/1024/1024</span><span class=cF7>)</span><span class=cF0>);
<a name="l228"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l229"></a>}
<a name="l230"></a>
<a name="l231"></a></span><span class=cF9>I64</span><span class=cF0> UpdateLineCnts()
<a name="l232"></a>{
<a name="l233"></a> </span><span class=cF9>I64</span><span class=cF0> res;
<a name="l234"></a>
<a name="l235"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l236"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l237"></a> DistroPrep;
<a name="l238"></a>
<a name="l239"></a> </span><span class=cF5>Cd</span><span class=cF0>(</span><span class=cF6>&quot;C:/&quot;</span><span class=cF0>);
<a name="l240"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;B:/TOS/TOS&quot;</span><span class=cF0>);
<a name="l241"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/Home&quot;</span><span class=cF0>,</span><span class=cF6>&quot;B:/TOS/TOS&quot;</span><span class=cF0>);
<a name="l242"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/Home&quot;</span><span class=cF0>);
<a name="l243"></a>
<a name="l244"></a> </span><span class=cF5>DocMax</span><span class=cF0>;
<a name="l245"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l246"></a> res=</span><span class=cF5>LineRep</span><span class=cF0>(</span><span class=cF6>&quot;C:/*&quot;</span><span class=cF0>,</span><span class=cF6>&quot;-r&quot;</span><span class=cF0>)+</span><span class=cF5>LineRep</span><span class=cF0>(</span><span class=cF6>&quot;C:/Adam/*&quot;</span><span class=cF0>)+
<a name="l247"></a> </span><span class=cF5>LineRep</span><span class=cF0>(</span><span class=cF6>&quot;C:/Compiler/*&quot;</span><span class=cF0>,</span><span class=cF6>&quot;-S+$&quot;</span><span class=cF0>)+</span><span class=cF5>LineRep</span><span class=cF0>(</span><span class=cF6>&quot;C:/Kernel/*&quot;</span><span class=cF0>);
<a name="l248"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;B:/TOS/TOS&quot;</span><span class=cF0>,</span><span class=cF6>&quot;C:/Home&quot;</span><span class=cF0>);
<a name="l249"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;B:/TOS/TOS&quot;</span><span class=cF0>);
<a name="l250"></a>
<a name="l251"></a> </span><span class=cF5>DocTreeFWrite</span><span class=cF0>(</span><span class=cF6>&quot;C:/Adam/ADefine.HC.Z&quot;</span><span class=cF0>,</span><span class=cF6>&quot;LineRep&quot;</span><span class=cF0>,
<a name="l252"></a> </span><span class=cF6>&quot;DefinePrint(\&quot;DD_TEMPLEOS_LOC\&quot;,\&quot;%,d\&quot;);\n&quot;</span><span class=cF0>,res);
<a name="l253"></a> </span><span class=cF5>DefinePrint</span><span class=cF0>(</span><span class=cF6>&quot;DD_TEMPLEOS_LOC&quot;</span><span class=cF0>,</span><span class=cF6>&quot;%,d&quot;</span><span class=cF0>,res);
<a name="l254"></a>
<a name="l255"></a> </span><span class=cF6>&quot;Total LOC:%12,d\n\n&quot;</span><span class=cF0>,res;
<a name="l256"></a> </span><span class=cF1>return</span><span class=cF0> res;
<a name="l257"></a>}
<a name="l258"></a>
<a name="l259"></a></span><span class=cF1>U0</span><span class=cF0> UpdateISODocDefines()
<a name="l260"></a>{
<a name="l261"></a> </span><span class=cF1>try</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l262"></a> </span><span class=cF5>DefinePrint</span><span class=cF0>(</span><span class=cF6>&quot;DD_TEMPLEOSCD_SIZE&quot;</span><span class=cF0>,
<a name="l263"></a> </span><span class=cF6>&quot;Download TempleOS V5.03 - Standard Distro (%0.1fMB)&quot;</span><span class=cF0>,
<a name="l264"></a> 0.1*</span><span class=cF7>(</span><span class=cF0>10*</span><span class=cF5>Size</span><span class=cF0>(</span><span class=cF6>&quot;D:/Downloads/TOS_Distro.ISO&quot;</span><span class=cF0>,</span><span class=cF6>&quot;+s&quot;</span><span class=cF0>)/1024/1024</span><span class=cF7>)</span><span class=cF0>);
<a name="l265"></a> </span><span class=cF5>DefinePrint</span><span class=cF0>(</span><span class=cF6>&quot;DD_TEMPLEOSCD_K_SIZE&quot;</span><span class=cF0>,
<a name="l266"></a> </span><span class=cF6>&quot;%dKB&quot;</span><span class=cF0>,</span><span class=cF5>Size</span><span class=cF7>(</span><span class=cF6>&quot;D:/Downloads/TOS_Distro.ISO&quot;</span><span class=cF0>,</span><span class=cF6>&quot;+s&quot;</span><span class=cF7>)</span><span class=cF0>/1024);
<a name="l267"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>catch</span><span class=cF0>
<a name="l268"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;catch_except=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l269"></a>}
<a name="l270"></a>UpdateISODocDefines;
<a name="l271"></a>
<a name="l272"></a>
<a name="l273"></a></span><span class=cF9>I64</span><span class=cF0> tos_progress;
<a name="l274"></a></span><span class=cF1>F64</span><span class=cF0> tos_progress_t0;
<a name="l275"></a>
<a name="l276"></a></span><span class=cF1>U0</span><span class=cF0> TOSProgress(</span><span class=cF1>U8</span><span class=cF0> *st)
<a name="l277"></a>{
<a name="l278"></a> </span><span class=cF1>U8</span><span class=cF0> buf[</span><span class=cF3>STR_LEN</span><span class=cF0>];
<a name="l279"></a> </span><span class=cFB>progress4</span><span class=cF0>=tos_progress;
<a name="l280"></a> </span><span class=cFB>progress3_max</span><span class=cF0>=1;
<a name="l281"></a> *</span><span class=cFB>progress4_desc</span><span class=cF0>=0;
<a name="l282"></a> </span><span class=cFB>progress4_max</span><span class=cF0>=9+MAKE_LITE+MAKE_DBG+MAKE_STAFF;
<a name="l283"></a> </span><span class=cFB>progress4_t0</span><span class=cF0>=tos_progress_t0;
<a name="l284"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(buf,</span><span class=cF6>&quot;%d. %s&quot;</span><span class=cF0>,++</span><span class=cFB>progress4</span><span class=cF0>,st);
<a name="l285"></a> </span><span class=cF6>&quot;$PURPLE$$TX+CX,\&quot;%s\&quot;$$FG$\n&quot;</span><span class=cF0>,buf;
<a name="l286"></a> </span><span class=cF5>StrCpy</span><span class=cF0>(</span><span class=cFB>progress3_desc</span><span class=cF0>,buf);
<a name="l287"></a> tos_progress=</span><span class=cFB>progress4</span><span class=cF0>;
<a name="l288"></a>}
<a name="l289"></a>
<a name="l290"></a></span><span class=cF1>U0</span><span class=cF0> TOSRegen2()
<a name="l291"></a>{
<a name="l292"></a> </span><span class=cF9>I64</span><span class=cF0> slash_home=0;
<a name="l293"></a> </span><span class=cF5>SettingsPush</span><span class=cF0>; </span><span class=cF2>//See </span><a href="/Wb/Adam/TaskSettings.HC.HTML#l3"><span class=cF4>SettingsPush</span></a><span class=cF0>
<a name="l294"></a> tos_progress=-1;
<a name="l295"></a> tos_progress_t0=</span><span class=cF5>tS</span><span class=cF0>;
<a name="l296"></a> </span><span class=cF5>RegExe</span><span class=cF0>(</span><span class=cF6>&quot;TempleOS/TOSRegen&quot;</span><span class=cF0>);
<a name="l297"></a>
<a name="l298"></a> TOSProgress(</span><span class=cF6>&quot;DskChk All&quot;</span><span class=cF0>);
<a name="l299"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>;
<a name="l300"></a> </span><span class=cF5>WinBorder</span><span class=cF0>;
<a name="l301"></a> </span><span class=cF5>WinMax</span><span class=cF0>;
<a name="l302"></a> DskChkAll;
<a name="l303"></a>
<a name="l304"></a> TOSProgress(</span><span class=cF6>&quot;Update Line Cnts&quot;</span><span class=cF0>);
<a name="l305"></a> UpdateLineCnts;
<a name="l306"></a>
<a name="l307"></a> TOSProgress(</span><span class=cF6>&quot;Copy C to D&quot;</span><span class=cF0>);
<a name="l308"></a> TOSCopyDrv(</span><span class=cF6>'C'</span><span class=cF0>,</span><span class=cF6>'D'</span><span class=cF0>);
<a name="l309"></a>
<a name="l310"></a> TOSProgress(</span><span class=cF6>&quot;Make Standard Distro ISO&quot;</span><span class=cF0>);
<a name="l311"></a> MakeStdDistro;
<a name="l312"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l313"></a> </span><span class=cF5>Move</span><span class=cF0>(TOS_ISO_NAME,</span><span class=cF6>&quot;D:/Downloads/TOS_Distro.ISO&quot;</span><span class=cF0>);
<a name="l314"></a>
<a name="l315"></a> TOSProgress(</span><span class=cF6>&quot;Make Supplemental1 ISO&quot;</span><span class=cF0>);
<a name="l316"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(</span><span class=cF6>&quot;D:/Downloads/TOS_Supplemental1&quot;</span><span class=cF0>,</span><span class=cF6>&quot;C:/Home/Sup1&quot;</span><span class=cF0>);
<a name="l317"></a>
<a name="l318"></a> TOSProgress(</span><span class=cF6>&quot;Make Supplemental2 ISO&quot;</span><span class=cF0>);
<a name="l319"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(</span><span class=cF6>&quot;D:/Downloads/TOS_Supplemental2&quot;</span><span class=cF0>,</span><span class=cF6>&quot;C:/Home/Sup2&quot;</span><span class=cF0>);
<a name="l320"></a>
<a name="l321"></a> TOSProgress(</span><span class=cF6>&quot;Make Supplemental3 ISO&quot;</span><span class=cF0>);
<a name="l322"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(</span><span class=cF6>&quot;D:/Downloads/TOS_Supplemental3&quot;</span><span class=cF0>,</span><span class=cF6>&quot;C:/Home/Sup3&quot;</span><span class=cF0>);
<a name="l323"></a>
<a name="l324"></a>#</span><span class=cF1>if</span><span class=cF0> MAKE_LITE
<a name="l325"></a> TOSProgress(</span><span class=cF6>&quot;Make Lite Distro ISO&quot;</span><span class=cF0>);
<a name="l326"></a> MakeLiteDistro;
<a name="l327"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l328"></a> </span><span class=cF5>Move</span><span class=cF0>(TOS_ISO_NAME,</span><span class=cF6>&quot;D:/Downloads/TOS_Lite.ISO&quot;</span><span class=cF0>);
<a name="l329"></a>#</span><span class=cF1>endif</span><span class=cF0>
<a name="l330"></a>#</span><span class=cF1>if</span><span class=cF0> MAKE_DBG
<a name="l331"></a> TOSProgress(</span><span class=cF6>&quot;Make Dbg Distro ISO&quot;</span><span class=cF0>);
<a name="l332"></a> MakeDbgDistro;
<a name="l333"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l334"></a> </span><span class=cF5>Move</span><span class=cF0>(TOS_ISO_NAME,</span><span class=cF6>&quot;D:/Downloads/TOS_Dbg.ISO&quot;</span><span class=cF0>);
<a name="l335"></a>#</span><span class=cF1>endif</span><span class=cF0>
<a name="l336"></a>#</span><span class=cF1>if</span><span class=cF0> MAKE_STAFF
<a name="l337"></a> TOSProgress(</span><span class=cF6>&quot;Make Staff Distro ISO&quot;</span><span class=cF0>);
<a name="l338"></a> MakeStaffDistro;
<a name="l339"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l340"></a> </span><span class=cF5>Move</span><span class=cF0>(TOS_ISO_NAME,</span><span class=cF6>&quot;D:/Downloads/TOS_Staff.ISO&quot;</span><span class=cF0>);
<a name="l341"></a>#</span><span class=cF1>endif</span><span class=cF0>
<a name="l342"></a>
<a name="l343"></a> UpdateISODocDefines;
<a name="l344"></a> </span><span class=cF5>Cd</span><span class=cF0>(</span><span class=cF6>&quot;C:/&quot;</span><span class=cF0>);
<a name="l345"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l346"></a>
<a name="l347"></a> TOSProgress(</span><span class=cF6>&quot;Check for Long Lines&quot;</span><span class=cF0>);
<a name="l348"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>LongLines</span><span class=cF0>)
<a name="l349"></a> </span><span class=cF5>throw</span><span class=cF0>;
<a name="l350"></a>
<a name="l351"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l352"></a> TOSProgress(</span><span class=cF6>&quot;Check for Broken DolDoc Links&quot;</span><span class=cF0>);
<a name="l353"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>LinkChk</span><span class=cF0>)
<a name="l354"></a> </span><span class=cF5>throw</span><span class=cF0>;
<a name="l355"></a>
<a name="l356"></a> TOSProgress(</span><span class=cF6>&quot;Find /Home&quot;</span><span class=cF0>);
<a name="l357"></a> slash_home=F2(</span><span class=cF6>&quot;/Home&quot;</span><span class=cF0>,</span><span class=cF6>&quot;-i+la&quot;</span><span class=cF0>);
<a name="l358"></a>
<a name="l359"></a> TOSProgress(</span><span class=cF6>&quot;DskChk All&quot;</span><span class=cF0>);
<a name="l360"></a> </span><span class=cF5>Drv</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l361"></a> DskChkAll;
<a name="l362"></a>
<a name="l363"></a> TOSProgress(</span><span class=cF6>&quot;Done&quot;</span><span class=cF0>);
<a name="l364"></a> </span><span class=cF5>SettingsPop</span><span class=cF0>;
<a name="l365"></a> </span><span class=cF6>&quot;F2(\&quot;/Home\&quot;) Cnt\t:%d\n&quot;</span><span class=cF0>,slash_home;
<a name="l366"></a> </span><span class=cF6>&quot;Elapsed Time\t:%5.3fs\n&quot;</span><span class=cF0>,</span><span class=cF5>tS</span><span class=cF0>-</span><span class=cFB>progress4_t0</span><span class=cF0>;
<a name="l367"></a> </span><span class=cF5>ProgressBarsRst</span><span class=cF0>(</span><span class=cF6>&quot;TempleOS/TOSRegen&quot;</span><span class=cF0>);
<a name="l368"></a>}
<a name="l369"></a>
<a name="l370"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> TOSPreRegen()
<a name="l371"></a>{</span><span class=cF2>//Copy bins from D:/Home/Sup1 to C:/Home/Sup1</span><span class=cF0>
<a name="l372"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;D:/Home/&quot;</span><span class=cF0> </span><span class=cF3>INS_REG_PERSONAL_INITIALS</span><span class=cF0> </span><span class=cF6>&quot;/*&quot;</span><span class=cF0>,
<a name="l373"></a> </span><span class=cF6>&quot;C:/Home/&quot;</span><span class=cF0> </span><span class=cF3>INS_REG_PERSONAL_INITIALS</span><span class=cF0>);
<a name="l374"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/Home/Sup1/Sup1Bin&quot;</span><span class=cF0>);
<a name="l375"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;D:/Home/Sup1/Sup1Bin&quot;</span><span class=cF0>,</span><span class=cF6>&quot;C:/Home/Sup1/Sup1Bin&quot;</span><span class=cF0>);
<a name="l376"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;D:/Home/Sup1/Sup1CodeScraps/Comm/TOSSocket*&quot;</span><span class=cF0>,
<a name="l377"></a> </span><span class=cF6>&quot;C:/Home/Sup1/Sup1CodeScraps/Comm&quot;</span><span class=cF0>);
<a name="l378"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>&quot;C:/Downloads/Linux&quot;</span><span class=cF0>);
<a name="l379"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;D:/Downloads/Linux&quot;</span><span class=cF0>,</span><span class=cF6>&quot;C:/Downloads/Linux&quot;</span><span class=cF0>);
<a name="l380"></a>}
<a name="l381"></a>
<a name="l382"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> TOSRegen()
<a name="l383"></a>{</span><span class=cF2>//Generate distro ISO's</span><span class=cF0>
<a name="l384"></a> TOSBootHDIns(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l385"></a> </span><span class=cF5>Once</span><span class=cF0>(</span><span class=cF6>&quot;TOSRegen2;&quot;</span><span class=cF0>);
<a name="l386"></a> </span><span class=cF5>BootRAM</span><span class=cF0>(</span><span class=cF6>&quot;C:/Kernel/&quot;</span><span class=cF0> </span><span class=cF3>KERNEL_BIN_C</span><span class=cF0>); </span><span class=cF2>//Boot to load </span><a href="/Wb/Demo/AcctExample/TOS/TOSCfg.HC.HTML#l54"><span class=cF4>TOS_CFG</span></a><span class=cF2>.</span><span class=cF0>
<a name="l387"></a>}
</span></pre></body>
</html>