Jelajahi Sumber

example for text2odc file format conversion

Ivan Denisov 5 tahun lalu
induk
melakukan
af44050863

TEMPAT SAMPAH
examples/append/System/Mod/Init.odc


+ 20 - 0
examples/text2odc/README

@@ -0,0 +1,20 @@
+# Application for convetion utf8-encoded text documents to "odc" format
+
+# Installation for Linux
+
+# 1. Prepare Interp version of BlackBox in "Linux_Interp" folder:
+cd ../../BlackBox
+./switch-target `uname -s` Interp
+./build
+./export ../Linux_Interp
+
+# 2. Compile this example:
+cd ../examples/text2odc
+echo "DevCompiler.CompileThis Text2odc" | ./runc
+
+# 3. Link standalone executable:
+./link
+
+# 3. For demonstration run:
+FILEPATH='' FILENAME='README' ./text2odc
+

TEMPAT SAMPAH
examples/text2odc/System/Mod/Text2odc.odc


+ 6 - 0
examples/text2odc/link

@@ -0,0 +1,6 @@
+#!/bin/sh
+
+./runc <<DATA
+Dev2Linker1.LinkElf `uname -s` text2odc := Kernel$+ Files HostFiles Math Strings Dates Meta Log Dialog Services Fonts Ports Stores Converters Sequencers Models Printers Views Controllers Properties Printing Mechanisms Containers Documents Windows Console StdInterpreter HostConsole HostRegistry HostFonts HostWindows HostDates HostDialog StdDialog ConsLog HostLang ConsLog TextModels TextRulers TextSetters TextViews TextControllers TextMappers StdApi StdCmds StdLinks HostTextConv Text2odc
+DATA
+

+ 4 - 0
examples/text2odc/runc

@@ -0,0 +1,4 @@
+#!/bin/sh
+env \
+  BB_PRIMARY_DIR="../../Linux_Interp" BB_SECONDARY_DIR="$PWD" \
+../../Linux_Interp/blackbox $@