mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00
Add convenience scripts coreclr.sh / cmd for local user workflow (#81)
This commit is contained in:
parent
71c981b338
commit
2b4b6d5d53
2 changed files with 18 additions and 0 deletions
2
coreclr.cmd
Normal file
2
coreclr.cmd
Normal file
|
@ -0,0 +1,2 @@
|
|||
@echo off
|
||||
"%~dp0build.cmd" -subsetCategory coreclr %*
|
16
coreclr.sh
Executable file
16
coreclr.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/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 )"
|
||||
"$scriptroot/build.sh" --subsetCategory coreclr $@
|
Loading…
Add table
Add a link
Reference in a new issue