2015-06-23 21:05:41 +03:00
|
|
|
#!/usr/bin/env bash
|
2014-08-01 21:56:22 +04:00
|
|
|
|
2019-10-29 21:53:29 +03:00
|
|
|
source="${BASH_SOURCE[0]}"
|
2019-02-20 08:48:55 +03:00
|
|
|
|
2019-10-29 21:53:29 +03:00
|
|
|
# resolve $SOURCE until the file is no longer a symlink
|
|
|
|
while [[ -h $source ]]; do
|
|
|
|
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
|
|
|
|
source="$(readlink "$source")"
|
2019-02-20 08:48:55 +03:00
|
|
|
|
2019-10-29 21:53:29 +03:00
|
|
|
# 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"
|
2019-02-20 08:48:55 +03:00
|
|
|
done
|
|
|
|
|
2019-10-29 21:53:29 +03:00
|
|
|
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
|
|
|
|
"$scriptroot/eng/common/build.sh" --pack --build --restore --test $@
|