Explorar o código

update example for encoding subsystems

Ivan Denisov %!s(int64=9) %!d(string=hai) anos
pai
achega
7f3cc8ea80
Modificáronse 3 ficheiros con 19 adicións e 12 borrados
  1. BIN=BIN
      examples/compress/Coder-List.odc
  2. 19 2
      examples/compress/README
  3. 0 10
      examples/compress/Std/Mod/Coder.odc

BIN=BIN
examples/compress/Coder-List.odc


+ 19 - 2
examples/compress/README

@@ -1,3 +1,20 @@
-App for edcoding susystems.
+Application for web-service which edcode BlackBox subsystems.
+Used by http://gitlab.molpit.org for processing of repository hooks.
 
-Used with http://gitlab.molpit.com for process repository hooks.
+Author: Ivan Denisov, denisov@molpit.org
+
+Installation for Linux
+
+1. Prepare Interp version of BlackBox in "Linux_Interp" folder:
+	./switch-target `uname -s` Interp
+	./build
+	./export ../Linux_Interp
+
+2. Compile this example:
+	cd ../examples/encoder
+	echo "DevCompiler.CompileThis StdCoder Init" | ./runc
+
+3. For demonstration run:
+	ENCODE_LIST_NAME='Coder-List.odc' ENCODE_LIST_PATH='' ./runc
+
+Output will contain two files encoded by StdCoder: 'Std/Mod/Coder.odc' and 'System/Mod/Init.odc'.

+ 0 - 10
examples/compress/Std/Mod/Coder.odc

@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# fix Ubuntu-specific problems:
-unset UBUNTU_MENUPROXY
-unset GTK_MODULES
-export LIBOVERLAY_SCROLLBAR=0
-mv Code Code_
-env \
-  BB_PRIMARY_DIR="../../BlackBox" BB_SECONDARY_DIR="$PWD" \
-../../BlackBox/blackbox