Skip to content

Commit

Permalink
Add convenience scripts coreclr.sh / cmd for local user workflow (dot…
Browse files Browse the repository at this point in the history
  • Loading branch information
trylek authored and jashook committed Nov 18, 2019
1 parent 71c981b commit 2b4b6d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coreclr.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
"%~dp0build.cmd" -subsetCategory coreclr %*
16 changes: 16 additions & 0 deletions coreclr.sh
Original file line number Diff line number Diff line change
@@ -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 $@

0 comments on commit 2b4b6d5

Please sign in to comment.