2019-03-19 23:44:16 +03:00
|
|
|
#!/usr/bin/env bash
|
2016-11-06 21:49:18 +03:00
|
|
|
|
2019-03-19 23:44:16 +03:00
|
|
|
source="${BASH_SOURCE[0]}"
|
|
|
|
|
|
|
|
# resolve $SOURCE until the file is no longer a symlink
|
|
|
|
while [[ -h $source ]]; do
|
|
|
|
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
|
|
|
|
source="$(readlink "$source")"
|
|
|
|
|
|
|
|
# if $source was a relative symlink, we need to resolve it relative to the path where the
|
|
|
|
# symlink file was located
|
|
|
|
[[ $source != /* ]] && source="$scriptroot/$source"
|
|
|
|
done
|
|
|
|
|
|
|
|
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
|
2024-05-08 20:14:01 +03:00
|
|
|
time "$scriptroot/eng/build.sh" --build --restore $@
|