From aa508028036ea01683b07cb9fc2812dc35bc9b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 7 Sep 2018 17:18:29 +0200 Subject: Add fake laminar execution possibility --- scripts/common | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 scripts/common (limited to 'scripts') diff --git a/scripts/common b/scripts/common deleted file mode 100644 index 7514ea9..0000000 --- a/scripts/common +++ /dev/null @@ -1,23 +0,0 @@ -# vim: ft=sh -# Laminar guard -if [ -z "$WORKSPACE" ]; then - echo "This script can be run only from laminar build environment!" >&2 - exit 1 -fi - -# Subprocess inclusion guard -[ -z "$LAMINAR_COMMON" ] -export LAMINAR_COMMON=y - -# 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 - -# Include utils -. utils -- cgit v1.2.3