Skip to content

Commit

Permalink
make build.sh work on windows (git bash).
Browse files Browse the repository at this point in the history
  • Loading branch information
matthid committed Jun 26, 2016
1 parent e737a46 commit d3fdfc2
Showing 1 changed file with 32 additions and 15 deletions.
47 changes: 32 additions & 15 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
#!/bin/bash

if [[ ! -e ~/.config/.mono/certs ]];
if test "$OS" = "Windows_NT"
then
mozroots --import --sync --quiet
fi
# use .Net
.paket/paket.bootstrapper.exe
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi

mono .paket/paket.bootstrapper.exe
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
.paket/paket.exe restore
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi

mono .paket/paket.exe restore
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
packages/FAKE/tools/FAKE.exe build.fsx $@
else
# use mono
if [[ ! -e ~/.config/.mono/certs ]]; then
mozroots --import --sync --quiet
fi

mono .paket/paket.bootstrapper.exe
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi

mono --runtime=v4.0 packages/FAKE/tools/FAKE.exe build.fsx -d:MONO "$@"
mono .paket/paket.exe restore
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi

mono packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx
fi

0 comments on commit d3fdfc2

Please sign in to comment.