浏览代码

update example for encoding subsystems

Ivan Denisov 9 年之前
父节点
当前提交
7f3cc8ea80
共有 3 个文件被更改,包括 19 次插入12 次删除
  1. 二进制
      examples/compress/Coder-List.odc
  2. 19 2
      examples/compress/README
  3. 0 10
      examples/compress/Std/Mod/Coder.odc

二进制
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