mirror of
https://github.com/osmarks/random-stuff
synced 2024-11-08 13:39:53 +00:00
35 lines
570 B
Bash
35 lines
570 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if test "$OS" = "Windows_NT"
|
||
|
then
|
||
|
# use .Net
|
||
|
|
||
|
.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
|
||
|
|
||
|
packages/FAKE/tools/FAKE.exe $@
|
||
|
else
|
||
|
# use mono
|
||
|
mono .paket/paket.bootstrapper.exe
|
||
|
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
|
||
|
mono packages/FAKE/tools/FAKE.exe $@
|
||
|
fi
|