Преглед на файлове

example for text2odc file format conversion

Ivan Denisov преди 5 години
родител
ревизия
af44050863
променени са 5 файла, в които са добавени 30 реда и са изтрити 0 реда
  1. BIN
      examples/append/System/Mod/Init.odc
  2. 20 0
      examples/text2odc/README
  3. BIN
      examples/text2odc/System/Mod/Text2odc.odc
  4. 6 0
      examples/text2odc/link
  5. 4 0
      examples/text2odc/runc

BIN
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
+

BIN
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 $@