11NUGET=" build/tools/nuget/nuget.exe"
22FAKE=" build/tools/FAKE/tools/Fake.exe"
33NUNIT=" build/tools/NUnit.Runners/tools/nunit-console.exe"
4-
4+ FSHARPCLI=" build/tools/Fsharp.Formatting.CommandTool/Fsharp.Formatting.CommandTool.nupkg"
5+ SOURCELINK=" build/tools/SourceLink.Fake/SourceLink.Fake.nupkg"
56
67# we need nuget to install tools locally
78if [[ ! -f " $NUGET " ]]; then
@@ -22,33 +23,15 @@ if [[ ! -f "$NUNIT" ]]; then
2223 mono --runtime=v4.0 " $NUGET " " install" " NUnit.Runners" " -OutputDirectory" " build/tools" " -ExcludeVersion" " -Prerelease"
2324fi
2425
25- # we need wintersmith to build our documentation which in turn needs npm/node
26- # installing and calling this locally so that yours and CI's systems do not need to be configured prior to running build.bat
27- # if not exist build\tools\Node.js\node.exe (
28- # ECHO Local node not found.. Installing..
29- # "build\tools\nuget\nuget.exe" "install" "node.js" "-OutputDirectory" "build\tools" "-ExcludeVersion" "-Prerelease"
30- # )
31- # if not exist build\tools\Npm\node_modules\npm\cli.js (
32- # ECHO Local npm not found.. Installing..
33- # "build\tools\nuget\nuget.exe" "install" "npm" "-OutputDirectory" "build\tools" "-ExcludeVersion" "-Prerelease"
34- # )
35- # if not exist build\tools\node_modules\wintersmith\bin\wintersmith (
36- # ECHO wintersmith not found.. Installing..
37- # cd build\tools
38- #
39- # "Node.js\node.exe" "Npm\node_modules\npm\cli.js" install wintersmith
40- #
41- # cd ..\..
42- # )
43-
44-
45- # SET TARGET="Build"
46- # SET VERSION="0.1.0"
47- # IF NOT [%1]==[] (set TARGET="%1")
48- # IF NOT [%2]==[] (set VERSION="%2")
26+ if [[ ! -f " $FSHARPCLI " ]]; then
27+ echo Fsharp formatting commandtool not found... Installing..
28+ mono --runtime=v4.0 " $NUGET " install FSharp.Formatting.CommandTool -OutputDirectory build/tools -ExcludeVersion -Prerelease
29+ fi
30+ if [[ ! -f " $SOURCELINK " ]]; then
31+ echo SourceLink not found.. installing
32+ mono --runtime=v4.0 " $NUGET " install SourceLink.Fake -OutputDirectory build/tools -ExcludeVersion
33+ fi
4934
50- mono --runtime=v4.0 " $NUGET " install FSharp.Formatting.CommandTool -OutputDirectory build/tools -ExcludeVersion -Prerelease
51- mono --runtime=v4.0 " $NUGET " install SourceLink.Fake -OutputDirectory build/tools -ExcludeVersion
5235# workaround assembly resolution issues in build.fsx
5336export FSHARPI=` which fsharpi`
5437cat - > fsharpi << "EOF "
0 commit comments