DEADSOFTWARE

append example
authorIvan Denisov <d.ivan.krsk@gmail.com>
Sun, 28 May 2017 13:06:49 +0000 (20:06 +0700)
committerIvan Denisov <d.ivan.krsk@gmail.com>
Sun, 28 May 2017 13:06:49 +0000 (20:06 +0700)
examples/append/README [new file with mode: 0755]
examples/append/System/Mod/Init.odc [new file with mode: 0644]
examples/append/runc [new file with mode: 0755]

diff --git a/examples/append/README b/examples/append/README
new file mode 100755 (executable)
index 0000000..47e75d6
--- /dev/null
@@ -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.
diff --git a/examples/append/System/Mod/Init.odc b/examples/append/System/Mod/Init.odc
new file mode 100644 (file)
index 0000000..ff13752
Binary files /dev/null and b/examples/append/System/Mod/Init.odc differ
diff --git a/examples/append/runc b/examples/append/runc
new file mode 100755 (executable)
index 0000000..54b8e62
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+env \
+  BB_PRIMARY_DIR="../../Linux_Interp" BB_SECONDARY_DIR="$PWD" \
+../../Linux_Interp/blackbox $@