-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·34 lines (26 loc) · 1019 Bytes
/
build.sh
File metadata and controls
executable file
·34 lines (26 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# This expects to be run from repo root dir and have ncave's F# compiler fork
# and Fable repos in sibling folders
NCAVE_FSHARP_REPO=fsharp_fable
REPL_REPO=repl
set -x # Output commands as they're executed
set -e # Stop on first error
set -o noglob # Disable globbing
dotnet build src/Fable.Repl.Lib
cd ../$NCAVE_FSHARP_REPO
git checkout export
dotnet build -c Release buildtools/buildtools.proj
dotnet build -c Release src/Compiler/FSharp.Compiler.Service.fsproj
cd ../$REPL_REPO
dotnet run -c Release -p src/Export
cd ../$NCAVE_FSHARP_REPO
cp temp/metadata/Browser.* ../$REPL_REPO/src/metadata/
cp temp/metadata/Fable.Repl.Lib.dll ../$REPL_REPO/src/metadata/
cd ../$REPL_REPO
set +x
echo ""
echo "Generated metadata is in ../$NCAVE_FSHARP_REPO/temp/metadata"
echo "Browser.*.dll and Fable.Repl.Lib.dll have been copied to src/metadata"
echo ""
echo "You can now run the following command to copy metadata (and Fable standalone) and compile Repl.Lib to JS"
echo " dotnet fake build -t BuildLib"