about summary refs log tree commit diff stats
path: root/config.sh
diff options
context:
space:
mode:
authorCharadon <charadon@charadon-gmpc.hsd1.ga.comcast.net>2022-07-14 02:59:17 -0400
committerCharadon <charadon@charadon-gmpc.hsd1.ga.comcast.net>2022-07-14 02:59:17 -0400
commitbada5c05b7639adb110606de248760712b4d5255 (patch)
tree0ac6f22572baa39eacf941525c2379276eb2d251 /config.sh
parentdc9b88d10505c72d1559b1a65a86d3026fb6e334 (diff)
downloaddscip-bada5c05b7639adb110606de248760712b4d5255.tar.gz
Moved configurable variables to config.sh
Diffstat (limited to 'config.sh')
-rw-r--r--config.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/config.sh b/config.sh
new file mode 100644
index 0000000..8da5c81
--- /dev/null
+++ b/config.sh
@@ -0,0 +1,24 @@
+# Variables that control the program. #
+# GIT Repo #
+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"
+# Branch to check #
+DSCIP_BRANCH="master"
+WORKING_DIRECTORY="."
+# Commands to run before building. #
+DSCIP_PRE_CMD="$WORKING_DIRECTORY/pre.sh"
+# Commands to run to build program. #
+DSCIP_BUILD_CMD="$WORKING_DIRECTORY/build.sh"
+# Commands to run after building is done. #
+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. #
+# etc #
+DSCIP_DISREGARD_COMMIT_CHECK="false" # If the script should just rebuild even #
+# if upstream has not updated. #
+DSCIP_OUTPUT_TO="/dev/stdout" # Output to file, default is stdout.