summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 147575c)
raw | patch | inline | side by side (parent: 147575c)
author | Ivan Denisov <d.ivan.krsk@gmail.com> | |
Sun, 28 May 2017 13:06:49 +0000 (20:06 +0700) | ||
committer | Ivan 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] | patch | blob |
examples/append/System/Mod/Init.odc | [new file with mode: 0644] | patch | blob |
examples/append/runc | [new file with mode: 0755] | patch | blob |
diff --git a/examples/append/README b/examples/append/README
--- /dev/null
+++ b/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.
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
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
--- /dev/null
+++ b/examples/append/runc
@@ -0,0 +1,4 @@
+#!/bin/sh
+env \
+ BB_PRIMARY_DIR="../../Linux_Interp" BB_SECONDARY_DIR="$PWD" \
+../../Linux_Interp/blackbox $@