Download Misc/DoDistro.txt from hschumann2/TempleOS-Source-Code: direct link, hf CLI and curl.
- Browser
- Download file 1.69 kB
-
https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Misc/DoDistro.txt
- Command line
-
hf download hf://datasets/hschumann2/TempleOS-Source-Code/Misc/DoDistro.txt
-
curl -L -o DoDistro.txt https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Misc/DoDistro.txt
1.69 kB
| //Make Your own Distro by #include-ing this file. | |
| #define STD_DISTRO_DVD_CFG "TB\nScale2Mem(2048,0x40000)\nT \n\n\n\n" | |
| U0 MakeMyISO(U8 *_out_iso_filename) | |
| {//Does everything with current drive. | |
| //If you have not recompiled Kernel and defined your CD/DVD drive, use Mount. | |
| U8 *out_iso_filename=FileNameAbs(_out_iso_filename); | |
| if (!DrvIsWritable) { | |
| "Drive must be writable. Install on Hard drive, first.\n"; | |
| return; | |
| } | |
| DelTree("/Distro"); | |
| Del(out_iso_filename); | |
| DirMk("/Distro"); | |
| In(STD_DISTRO_DVD_CFG); | |
| BootDVDIns; | |
| Copy("/*","/Distro"); | |
| Del("/Distro/" KERNEL_BIN_C); | |
| CopyTree(BOOT_DIR, "/Distro" BOOT_DIR); | |
| CopyTree("/Home", "/Distro/Home"); | |
| CopyTree("/Adam", "/Distro/Adam"); | |
| CopyTree("/Apps", "/Distro/Apps"); | |
| CopyTree("/Compiler", "/Distro/Compiler"); | |
| CopyTree("/Demo", "/Distro/Demo"); | |
| CopyTree("/Doc", "/Distro/Doc"); | |
| CopyTree("/Kernel", "/Distro/Kernel"); | |
| CopyTree("/Misc", "/Distro/Misc"); | |
| //To save space, optionally delete dictionary. | |
| //Del("/Distro/Adam/AutoComplete/ACDefs.DATA"); | |
| CopyTree("/Linux","/Distro/Linux"); //You can leave this out. | |
| DirMk("/Distro/Tmp"); | |
| DirMk("/Distro/Tmp/ScrnShots"); | |
| ISO9660ISO(out_iso_filename,"/Distro/*",,"/Distro" BOOT_DIR_KERNEL_BIN_C); | |
| //If you want RedSea filesystem, use this instead but make it ISO.C. | |
| //RedSeaISO(out_iso_filename,"/Distro","/Distro" BOOT_DIR_KERNEL_BIN_C); | |
| //If CD-ROM use MT_CD instead of MT_DVD. | |
| //DVDImageWrite('T',out_iso_filename,MT_DVD); //Uncomment to burn. | |
| //DelTree("/Distro"); | |
| Free(out_iso_filename); | |
| } | |
| MakeMyISO("/Tmp/MyDistro.ISO"); | |
| // Study my account examples Cfg Strs, Update Funs. | |