2018-10-22 05:07:26 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
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 )"
|
|
|
|
|
2020-04-30 12:44:30 +00:00
|
|
|
. "$scriptroot/build.sh" --restore --build --test --pack --publish --ci $@
|