From d562390407eec6ecc83a9f19635258fbe83b6695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 14 Oct 2018 17:31:02 +0200 Subject: alpine: move it to templates and try to add qemu support --- job.common | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'job.common') diff --git a/job.common b/job.common index 92941dc..165f61c 100644 --- a/job.common +++ b/job.common @@ -5,21 +5,23 @@ if [ -z "$WORKSPACE" ]; then fi # Subprocess inclusion guard -[ -z "$LAMINAR_COMMON" ] -export LAMINAR_COMMON=y +if [ -z "$LAMINAR_COMMON" ]; then + export LAMINAR_COMMON=y -# Job and template id -export JOBID="$(basename "$0" | sed 's/\.run$//')" -export TEMPLATEID="$(basename "$(readlink -f "$0")" | sed 's/\.run$//')" + # Job and template id + export JOBID="$(basename "$0" | sed 's/\.run$//')" + export TEMPLATEID="$(basename "$(readlink -f "$0")" | sed 's/\.run$//')" -# Template workspace -export TWORKSPACE="$HOME/workspace/$TEMPLATEID" -if [ "$JOBID" = "$TEMPLATEID" ]; then - TWORKSPACE="$HOME/workspace/notemplate" -fi + # Template workspace + export TWORKSPACE="$HOME/workspace/$TEMPLATEID" + if [ "$JOBID" = "$TEMPLATEID" ]; then + TWORKSPACE="$HOME/workspace/notemplate" + fi + + # Files directory + export FILES="$(readlink -f "$(dirname "$(readlink -f "$0")")/../files")" -# Files directory -export FILES="$(readlink -f "$(dirname "$(readlink -f "$0")")/../files")" +fi # Include utils . utils -- cgit v1.2.3