1
1
NUGET=" build/tools/nuget/nuget.exe"
2
2
FAKE=" build/tools/FAKE/tools/Fake.exe"
3
3
NUNIT=" 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"
5
6
6
7
# we need nuget to install tools locally
7
8
if [[ ! -f " $NUGET " ]]; then
@@ -22,33 +23,15 @@ if [[ ! -f "$NUNIT" ]]; then
22
23
mono --runtime=v4.0 " $NUGET " " install" " NUnit.Runners" " -OutputDirectory" " build/tools" " -ExcludeVersion" " -Prerelease"
23
24
fi
24
25
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
49
34
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
52
35
# workaround assembly resolution issues in build.fsx
53
36
export FSHARPI=` which fsharpi`
54
37
cat - > fsharpi << "EOF "
0 commit comments