From: Ivan Denisov Date: Sun, 28 May 2017 13:06:49 +0000 (+0700) Subject: append example X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=8c1a0b358821b18ab654bbaf986249f27be81bcb;p=bbcp.git append example --- diff --git a/examples/append/README b/examples/append/README new file mode 100755 index 0000000..47e75d6 --- /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 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 index 0000000..54b8e62 --- /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 $@