You've already forked linux-packaging-mono
Imported Upstream version 6.12.0.98
Former-commit-id: 066e1c5ebb0cc420bd293e60a01325420779fdd1
This commit is contained in:
parent
15e620f34f
commit
7d4706c3d7
33
external/llvm-project/build.sh
vendored
Executable file
33
external/llvm-project/build.sh
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source="${BASH_SOURCE[0]}"
|
||||
|
||||
function is_cygwin_or_mingw()
|
||||
{
|
||||
case $(uname -s) in
|
||||
CYGWIN*) return 0;;
|
||||
MINGW*) return 0;;
|
||||
*) return 1;;
|
||||
esac
|
||||
}
|
||||
|
||||
# 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 )"
|
||||
|
||||
if is_cygwin_or_mingw; then
|
||||
# if bash shell running on Windows (not WSL),
|
||||
# pass control to powershell build script.
|
||||
scriptroot=$(cygpath -d "$scriptroot")
|
||||
powershell -c "$scriptroot\\build.cmd" $@
|
||||
else
|
||||
"$scriptroot/eng/build.sh" $@
|
||||
fi
|
||||
Reference in New Issue
Block a user