Remove k command and use dnx instead
This commit is contained in:
parent
3cd272a96a
commit
1d8f64d71c
|
|
@ -27,11 +27,11 @@ if test ! -d packages/KoreBuild; then
|
|||
mono .nuget/nuget.exe install Sake -version 0.2 -o packages -ExcludeVersion
|
||||
fi
|
||||
|
||||
if ! type k > /dev/null 2>&1; then
|
||||
if ! type dnvm > /dev/null 2>&1; then
|
||||
source packages/KoreBuild/build/dnvm.sh
|
||||
fi
|
||||
|
||||
if ! type k > /dev/null 2>&1; then
|
||||
if ! type dnx > /dev/null 2>&1; then
|
||||
dnvm upgrade
|
||||
fi
|
||||
|
||||
|
|
|
|||
4
build.sh
4
build.sh
|
|
@ -27,11 +27,11 @@ if test ! -d packages/KoreBuild; then
|
|||
mono .nuget/nuget.exe install Sake -version 0.2 -o packages -ExcludeVersion
|
||||
fi
|
||||
|
||||
if ! type k > /dev/null 2>&1; then
|
||||
if ! type dnvm > /dev/null 2>&1; then
|
||||
source packages/KoreBuild/build/dnvm.sh
|
||||
fi
|
||||
|
||||
if ! type k > /dev/null 2>&1; then
|
||||
if ! type dnx > /dev/null 2>&1; then
|
||||
dnvm upgrade
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
@{/*
|
||||
|
||||
k
|
||||
Run klr commands in your project. Executes k cmd.
|
||||
Run dnx commands in your project. Executes dnx cmd.
|
||||
|
||||
command=''
|
||||
dnvmUse=''
|
||||
|
|
@ -12,6 +12,6 @@ default dnvmUse=''
|
|||
|
||||
var dnvmPath='${Directory.GetCurrentDirectory()}\packages\KoreBuild\build\dnvm'
|
||||
|
||||
exec program='cmd' commandline='/C k ${command}' if='!IsMono && string.IsNullOrEmpty(dnvmUse)'
|
||||
exec program='cmd' commandline='/C "${dnvmPath}" use ${dnvmUse} && k ${command}' if='!IsMono && !string.IsNullOrEmpty(dnvmUse)'
|
||||
exec program='k' commandline='${command}' if='IsMono'
|
||||
exec program='cmd' commandline='/C dnx . ${command}' if='!IsMono && string.IsNullOrEmpty(dnvmUse)'
|
||||
exec program='cmd' commandline='/C "${dnvmPath}" use ${dnvmUse} && dnx . ${command}' if='!IsMono && !string.IsNullOrEmpty(dnvmUse)'
|
||||
exec program='dnx' commandline='. ${command}' if='IsMono'
|
||||
|
|
|
|||
Loading…
Reference in New Issue