1 //: Writing to a literal (not computed) address of 0 in a recipe chains two 2 //: spaces together. When a variable has a property of /space:1, it looks up 3 //: the variable in the chained/surrounding space. /space:2 looks up the 4 //: surrounding space of the surrounding space, etc. 5 //: 6 //: todo: warn on default-space abuse. default-space for one recipe should 7 //: never come from another, otherwise memory will be corrupted. 8 9 :(scenario closure) 10 def main [ 11 default-space:space <- new location:type, 30 12 2:space/names:new-counter <- new-counter 13 10:num/raw <- increment-counter 2:space/names:new-counter 14 11:num/raw <- increment-counter 2:space/names:#!/bin/sh # Variables that control the program. # # GIT Repo # export DSCIP_GITREPO="https://www.example.com/example/example.git" export DSCIP_NAME="Example" # GIT MODE: # # pull: Doesn't delete previous clone and just pulls changes. # # clone: Deletes previous clone, and creates a fresh clone. # export DSCIP_GITMODE="clone" # Branch to check # export DSCIP_BRANCH="master" # The directory where all the scripts are. By default tries to detect where # # automatically. # WORKING_DIRECTORY="$(pwd -P)" export WORKING_DIRECTORY # Commands to run before building. # export DSCIP_PRE_CMD="$WORKING_DIRECTORY/pre.sh" # Commands to run to build program. # export DSCIP_BUILD_CMD="$WORKING_DIRECTORY/build.sh" # Commands to run after building has succeeded. # export DSCIP_POST_CMD="$WORKING_DIRECTORY/post.sh" # Commands to run after building has failed. export DSCIP_FAILED_CMD="$WORKING_DIRECTORY/failed.sh" # Daemon mode options # export DSCIP_DAEMON="false" # If daemon mode should be enabled or not. # export DSCIP_DAEMON_FORK="true" # If the daemon should run in the background. # export DSCIP_SLEEP="60" # How many seconds before the daemon re-runs itself. # # etc # export DSCIP_DISREGARD_COMMIT_CHECK="false" # If the script should just rebuild even # # if upstream has not updated. # export DSCIP_OUTPUT_TO="$WORKING_DIRECTORY/output.txt" # Output to file, default is stdout.