cleaning up bootstrap story
This commit is contained in:
parent
9da2475e2f
commit
cdd7248a8d
14 changed files with 57 additions and 101 deletions
17
scripts/bootstrap/dotnet-compile
Normal file
17
scripts/bootstrap/dotnet-compile
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SOURCE="${BASH_SOURCE[0]}"
|
||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
SOURCE="$(readlink "$SOURCE")"
|
||||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
||||
done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
# work around restore timeouts on Mono
|
||||
[ -z "$MONO_THREADS_PER_CPU" ] && export MONO_THREADS_PER_CPU=50
|
||||
|
||||
# Makes development easier
|
||||
export PATH=$PATH:$DIR
|
||||
|
||||
exec "dnx" -p "$DIR/../../src/Microsoft.DotNet.Tools.Compiler" run "$@"
|
11
scripts/bootstrap/dotnet-compile.cmd
Normal file
11
scripts/bootstrap/dotnet-compile.cmd
Normal file
|
@ -0,0 +1,11 @@
|
|||
@Echo OFF
|
||||
SETLOCAL
|
||||
SET ERRORLEVEL=
|
||||
|
||||
REM makes testing easier for now
|
||||
set PATH=%PATH%;%~dp0
|
||||
|
||||
dnx %DOTNET_OPTIONS% -p %~dp0..\..\src\Microsoft.DotNet.Tools.Compiler run %*
|
||||
|
||||
exit /b %ERRORLEVEL%
|
||||
ENDLOCAL
|
17
scripts/bootstrap/dotnet-publish
Normal file
17
scripts/bootstrap/dotnet-publish
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SOURCE="${BASH_SOURCE[0]}"
|
||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
SOURCE="$(readlink "$SOURCE")"
|
||||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
||||
done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
# work around restore timeouts on Mono
|
||||
[ -z "$MONO_THREADS_PER_CPU" ] && export MONO_THREADS_PER_CPU=50
|
||||
|
||||
# Makes development easier
|
||||
export PATH=$PATH:$DIR
|
||||
|
||||
exec "dnx" -p "$DIR/../../src/Microsoft.DotNet.Tools.Publish" run "$@"
|
11
scripts/bootstrap/dotnet-publish.cmd
Normal file
11
scripts/bootstrap/dotnet-publish.cmd
Normal file
|
@ -0,0 +1,11 @@
|
|||
@Echo OFF
|
||||
SETLOCAL
|
||||
SET ERRORLEVEL=
|
||||
|
||||
REM makes testing easier for now
|
||||
set PATH=%PATH%;%~dp0
|
||||
|
||||
dnx %DOTNET_OPTIONS% -p %~dp0..\..\src\Microsoft.DotNet.Tools.Publish run %*
|
||||
|
||||
exit /b %ERRORLEVEL%
|
||||
ENDLOCAL
|
Loading…
Add table
Add a link
Reference in a new issue