about summary refs log tree commit diff stats
path: root/config.sh
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-07-16 21:53:48 -0400
committerCharadon <dev@iotib.net>2022-07-16 21:53:48 -0400
commitc554c86a6ae091b15f41b97b682f574477d4bdd4 (patch)
tree0c7fdf6dd3ce7649cc08b256ea275e2db1117652 /config.sh
parentc9a15281b7328742a59c46eb3171754ce9e30bff (diff)
downloaddscip-c554c86a6ae091b15f41b97b682f574477d4bdd4.tar.gz
Removed chroot support as that's out of scope of the project
Diffstat (limited to 'config.sh')
-rwxr-xr-x[-rw-r--r--]config.sh26
1 files changed, 15 insertions, 11 deletions
diff --git a/config.sh b/config.sh
index 321235b..b564913 100644..100755
--- a/config.sh
+++ b/config.sh
@@ -1,24 +1,28 @@
+#!/bin/sh
 # Variables that control the program. #
 # GIT Repo #
-DSCIP_GITREPO="https://www.example.com/example/example.git"
+export DSCIP_GITREPO="https://www.example.com/example/example.git"
 # GIT MODE:                                                   #
 # pull: Doesn't delete previous clone and just pulls changes. #
 # clone: Deletes previous clone, and creates a fresh clone.   #
-DSCIP_GITMODE="clone"
+export DSCIP_GITMODE="clone"
 # Branch to check #
-DSCIP_BRANCH="master"
+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. #
-DSCIP_PRE_CMD="$WORKING_DIRECTORY/pre.sh"
+export DSCIP_PRE_CMD="$WORKING_DIRECTORY/pre.sh"
 # Commands to run to build program. #
-DSCIP_BUILD_CMD="$WORKING_DIRECTORY/build.sh"
+export DSCIP_BUILD_CMD="$WORKING_DIRECTORY/build.sh"
 # Commands to run after building is done. #
-DSCIP_POST_CMD="$WORKING_DIRECTORY/post.sh"
+export DSCIP_POST_CMD="$WORKING_DIRECTORY/post.sh"
 # Daemon mode options #
-DSCIP_DAEMON="false" # If daemon mode should be enabled or not. #
-DSCIP_DAEMON_FORK="true" # If the daemon should run in the background. #
-DSCIP_SLEEP="60" # How many seconds before the daemon re-runs itself. #
+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 #
-DSCIP_DISREGARD_COMMIT_CHECK="false" # If the script should just rebuild even #
+export DSCIP_DISREGARD_COMMIT_CHECK="false" # If the script should just rebuild even #
 # if upstream has not updated. #
-DSCIP_OUTPUT_TO="$WORKING_DIRECTORY/output.log" # Output to file, default is stdout. 
+export DSCIP_OUTPUT_TO="$WORKING_DIRECTORY/output.txt" # Output to file, default is stdout.