Browse Source

append example

Ivan Denisov 8 years ago
parent
commit
8c1a0b3588
3 changed files with 23 additions and 0 deletions
  1. 19 0
      examples/append/README
  2. BIN
      examples/append/System/Mod/Init.odc
  3. 4 0
      examples/append/runc

+ 19 - 0
examples/append/README

@@ -0,0 +1,19 @@
+# Application for build server which append strings to System/Rsrc/Strings.odc.
+# Used by http://blackbox.obertone.ru in BlackBox CI system.
+
+# 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/append
+echo "DevCompiler.CompileThis Init" | ./runc
+
+# 3. For demonstration run:
+FILEPATH='System/Rsrc' FILENAME='Strings.odc' KEY='test' VALUE='1' ./runc
+
+# Then check System/Rsrc/Strings.odc. It will contain the string with key and value in the last line.

BIN
examples/append/System/Mod/Init.odc


+ 4 - 0
examples/append/runc

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