summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-12-04 16:22:46 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-12-04 16:22:46 -0500
commit2119eeef5d80ae1c14fdd1c45a9d81908ce14e3d (patch)
treea7b6dee647d7c0870885f6c17caddf2422a0281b /scripts
downloaddocker-pipeline-2119eeef5d80ae1c14fdd1c45a9d81908ce14e3d.tar.gz
Initial commit
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
new file mode 100755
index 0000000..348556f
--- /dev/null
+++ b/scripts/build.sh
@@ -0,0 +1,19 @@
+#!/bin/bash -e
+
+taskdir=${TOOLCHAIN_BUILD}/etc/${PIPELINE}/tasks
+
+if [[ ! -d ${taskdir} ]]; then
+ echo "No tasks. ${taskdir} does not exist."
+ exit 1
+fi
+
+for task in ${taskdir}/*
+do
+ # Check for execution permission
+ if [[ ! -x ${task} ]]; then
+ echo "Skipping: ${task}"
+ continue
+ fi
+ echo "Executing: ${task}"
+ ${task}
+done