blob: 7514ea935789272a2e09cd433a909d655a2619c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# 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
|