#!/bin/sh

./run-dev0 <<DATA
Dev0Compiler.Compile('Lin/Mod', 'Dl.txt')
Dev0Compiler.Compile('Lin/Mod', 'Libc.txt')
Dev0Compiler.Compile('System/Mod', 'Kernel.txt')

Dev0Compiler.Compile('System/Mod', 'Files.txt')
Dev0Compiler.Compile('System/Mod', 'Console.txt')
Dev0Compiler.Compile('System/Mod', 'Math.txt')
Dev0Compiler.Compile('System/Mod', 'Strings.txt')
Dev0Compiler.Compile('System/Mod', 'Meta.txt')
Dev0Compiler.Compile('System/Mod', 'Dialog.txt')

Dev0Compiler.Compile('Enc/Mod', 'Codecs.txt')
Dev0Compiler.Compile('Host/Mod', 'Lang.txt')
Dev0Compiler.Compile('Host/Mod', 'Files.txt')
Dev0Compiler.Compile('Host/Mod', 'Console.txt')

Dev0Compiler.Compile('System/Mod', 'Stores.txt')
Dev0Compiler.Compile('System/Mod', 'Converters.txt')
Dev0Compiler.Compile('System/Mod', 'Dates.txt')
Dev0Compiler.Compile('System/Mod', 'Integers.txt')
Dev0Compiler.Compile('System/Mod', 'Sequencers.txt')
Dev0Compiler.Compile('System/Mod', 'Services.txt')
Dev0Compiler.Compile('System/Mod', 'Log.txt')
Dev0Compiler.Compile('System/Mod', 'SMath.txt')

Dev0Compiler.Compile('System/Mod', 'Fonts.txt')
Dev0Compiler.Compile('System/Mod', 'Ports.txt')
Dev0Compiler.Compile('System/Mod', 'Printers.txt')
Dev0Compiler.Compile('System/Mod', 'Models.txt')
Dev0Compiler.Compile('System/Mod', 'Views.txt')
Dev0Compiler.Compile('System/Mod', 'Printing.txt')
Dev0Compiler.Compile('System/Mod', 'Mechanisms.txt')
Dev0Compiler.Compile('System/Mod', 'Controllers.txt')
Dev0Compiler.Compile('System/Mod', 'Properties.txt')
Dev0Compiler.Compile('System/Mod', 'Containers.txt')
Dev0Compiler.Compile('System/Mod', 'Documents.txt')
Dev0Compiler.Compile('System/Mod', 'Windows.txt')

Dev0Compiler.Compile('Text/Mod', 'Models.txt')
Dev0Compiler.Compile('Text/Mod', 'Mappers.txt')
Dev0Compiler.Compile('Text/Mod', 'Rulers.txt')
Dev0Compiler.Compile('Text/Mod', 'Setters.txt')
Dev0Compiler.Compile('Text/Mod', 'Views.txt')
Dev0Compiler.Compile('Text/Mod', 'Controllers.txt')
Dev0Compiler.Compile('Text/Mod', 'Cmds.txt')

Dev0Compiler.Compile('System/Mod', 'In.txt')

Dev0Compiler.Compile('Std/Mod', 'Dialog.txt')
Dev0Compiler.Compile('Std/Mod', 'Api.txt')
Dev0Compiler.Compile('Std/Mod', 'CFrames.txt')
Dev0Compiler.Compile('System/Mod', 'Controls.txt')
Dev0Compiler.Compile('Std/Mod', 'Cmds.txt')
Dev0Compiler.Compile('Std/Mod', 'Logos.txt')
Dev0Compiler.Compile('Std/Mod', 'Scrollers.txt')
Dev0Compiler.Compile('Std/Mod', 'ViewSizer.txt')

Dev0Compiler.Compile('Std/Mod', 'Clocks.txt')
Dev0Compiler.Compile('Std/Mod', 'Coder.txt')
Dev0Compiler.Compile('Std/Mod', 'Folds.txt')
Dev0Compiler.Compile('Std/Mod', 'Debug.txt')
Dev0Compiler.Compile('Std/Mod', 'Stamps.txt')
Dev0Compiler.Compile('Std/Mod', 'ETHConv.txt')
Dev0Compiler.Compile('Std/Mod', 'Headers.txt')
Dev0Compiler.Compile('Std/Mod', 'Links.txt')

Dev0Compiler.Compile('Std/Mod', 'Loader.txt')
Dev0Compiler.Compile('Lin/Mod', 'Kernel_so_init.txt')

# before StdLog
Dev0Compiler.Compile('', 'HostDialog.txt')

Dev0Compiler.Compile('Std/Mod', 'Log.txt')
# Dev0Compiler.Compile('', 'StdLog.txt')
# Dev0Compiler.Compile('Std/Mod', 'Out.txt')
Dev0Compiler.Compile('Cons/Mod', 'Log.txt')

Dev0Compiler.Compile('Dev/Mod', 'Markers.txt')
Dev0Compiler.Compile('Dev/Mod', 'Commanders.txt')
Dev0Compiler.Compile('Dev/Mod', 'Selectors.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPM.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPT.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPH.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPB.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPE.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPS.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPP.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPL486.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPC486.txt')
Dev0Compiler.Compile('Dev/Mod', 'CPV486.txt')
Dev0Compiler.Compile('Dev/Mod', 'Compiler.txt')
# Dev0Compiler.Compile('Dev/Mod', 'ElfLinker16.txt')

Dev0Compiler.Compile('Std/Mod', 'Interpreter.txt')

### BlackBox

Dev0Compiler.Compile('', 'HostFonts.txt')
Dev0Compiler.Compile('', 'HostWindows.txt')
Dev0Compiler.Compile('Host/Mod', 'Dates.txt')
Dev0Compiler.Compile('', 'HostTextConv.txt')

Dev0Compiler.Compile('Enc/Mod', 'StdAliases.txt')
Dev0Compiler.Compile('Enc/Mod', 'StdCodecs.txt')

Dev0Compiler.Compile('Cons/Mod', 'Interp.txt')

Dev0Compiler.Compile('', 'Init-Interp.txt')

Dev0ElfLinker.LinkDll('libBB.so := Kernel+ Files HostFiles StdLoader')
# Dev0ElfLinker.LinkDll('libBB.so := Kernel+ Kernel_so_init# Files HostFiles StdLoader')
DATA

env LANG=C ./run-BlackBox <<DATA
DevCompiler.CompileThis DevElfLinker16
DevCompiler.CompileThis ConsCompiler
DATA

# Enc
env LANG=C ./run-BlackBox <<DATA
# DevCompiler.CompileThis EncCodecs
# ConsCompiler.Compile('Enc/Mod', 'StdAliases.txt')
# DevCompiler.CompileThis EncStdCodecs
DevCompiler.CompileThis EncStdMap_ascii EncStdMap_utf_8

ConsCompiler.Compile('Enc/Mod', 'StdMap_atarist.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp037.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1026.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1140.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1250.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1251.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1252.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1253.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1254.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1255.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1256.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1257.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp1258.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp424.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp437.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp500.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp720.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp737.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp775.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp850.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp852.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp855.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp856.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp857.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp858.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp860.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp861.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp862.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp863.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp864.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp865.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp866.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp869.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_cp874.txt')
#ConsCompiler.Compile('Enc/Mod', 'StdMap_cp936.txt')
#ConsCompiler.Compile('Enc/Mod', 'StdMap_cp949.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_georgian_academy.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_georgian_ps.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_hp_roman8.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_1.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_2.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_3.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_4.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_5.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_6.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_7.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_8.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_9.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_10.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_11.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_13.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_14.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_15.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_iso8859_16.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_koi8_r.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_koi8_u.txt')
#ConsCompiler.Compile('Enc/Mod', 'StdMap_kps9566.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_kz1048.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_mac_centraleurope.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_mac_cyrillic.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_mac_greek.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_mac_iceland.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_mac_roman.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_mac_turkish.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_ptcp154.txt')
ConsCompiler.Compile('Enc/Mod', 'StdMap_viscii.txt')
DATA

./run-BlackBox <<DATA
DevCompiler.CompileThis XhtmlEntitySets XhtmlWriters XhtmlStdFileWriters XhtmlTextTableMarkers XhtmlExporter

DevCompiler.CompileThis ObxHello0 ObxPi ObxRandom ObxTrap
DATA
