diff options
author | Karel Kočí <cynerd@email.cz> | 2018-09-07 17:18:29 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-09-07 17:18:29 +0200 |
commit | aa508028036ea01683b07cb9fc2812dc35bc9b65 (patch) | |
tree | 8334be3d7e2817281b857e8f450291a3504856fa /scripts | |
parent | 901d7020373e43d441fea5ab8f14492026b66671 (diff) | |
download | laminar-cnf-aa508028036ea01683b07cb9fc2812dc35bc9b65.tar.gz laminar-cnf-aa508028036ea01683b07cb9fc2812dc35bc9b65.tar.bz2 laminar-cnf-aa508028036ea01683b07cb9fc2812dc35bc9b65.zip |
Add fake laminar execution possibility
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/common | 23 |
1 files changed, 0 insertions, 23 deletions
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 |