forked from tsai/mathnet-numerics
5 changed files with 41 additions and 15 deletions
Binary file not shown.
@ -1,7 +1,14 @@ |
|||
@echo off |
|||
cls |
|||
if not exist tools\paket\paket.exe ( |
|||
tools\paket\paket.bootstrapper.exe |
|||
|
|||
.paket\paket.bootstrapper.exe |
|||
if errorlevel 1 ( |
|||
exit /b %errorlevel% |
|||
) |
|||
tools\paket\paket.exe restore |
|||
|
|||
.paket\paket.exe restore |
|||
if errorlevel 1 ( |
|||
exit /b %errorlevel% |
|||
) |
|||
|
|||
packages\FAKE\tools\FAKE.exe build.fsx %* |
|||
|
|||
@ -1,13 +1,32 @@ |
|||
#!/bin/bash |
|||
if test "$OS" = "Windows_NT" |
|||
#!/usr/bin/env bash |
|||
|
|||
set -eu |
|||
set -o pipefail |
|||
|
|||
cd `dirname $0` |
|||
|
|||
FSIARGS="" |
|||
OS=${OS:-"unknown"} |
|||
if [[ "$OS" != "Windows_NT" ]] |
|||
then |
|||
# use .Net |
|||
[ ! -f tools/paket/paket.exe ] && tools/paket/paket.bootstrapper.exe |
|||
tools/paket/paket.exe restore |
|||
packages/FAKE/tools/FAKE.exe build.fsx $@ |
|||
else |
|||
# use mono |
|||
[ ! -f tools/paket/paket.exe ] && mono --runtime=v4.0 tools/paket/paket.bootstrapper.exe |
|||
mono --runtime=v4.0 tools/paket/paket.exe restore |
|||
mono --runtime=v4.0 packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx |
|||
FSIARGS="--fsiargs -d:MONO" |
|||
fi |
|||
|
|||
function run() { |
|||
if [[ "$OS" != "Windows_NT" ]] |
|||
then |
|||
mono "$@" |
|||
else |
|||
"$@" |
|||
fi |
|||
} |
|||
|
|||
run .paket/paket.bootstrapper.exe |
|||
|
|||
if [[ "$OS" != "Windows_NT" ]] && [ ! -e ~/.config/.mono/certs ] |
|||
then |
|||
mozroots --import --sync --quiet |
|||
fi |
|||
|
|||
run .paket/paket.exe restore |
|||
run packages/FAKE/tools/FAKE.exe "$@" $FSIARGS build.fsx |
|||
|
|||
Binary file not shown.
Loading…
Reference in new issue