#!/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 output.txt # Automatically update DSCIP? export DSCIP_AUTO_UPDATE="false" # Set up format for the COMMIT_DATE variable. By default, it's %Y%m%d (YEARMONTHDAY | 20220812) # See strftime(3) for more information. export DSCIP_DATE_FORMAT="%Y%m%d"