if [ -n "$TRAVIS_BUILD_DIR" ]; then
BUILD_DIR=$TRAVIS_BUILD_DIR/build
fi;

if [ -n "$BUILD_SOURCESDIRECTORY" ]; then
BUILD_DIR=$BUILD_SOURCESDIRECTORY/build
fi

cd $BUILD_DIR/../objcgen
./system-dependencies.sh --provision

OS=$(uname -s)
if [ "$OS" == "Darwin" ]; then
	export PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bin
fi

cd $BUILD_DIR
if [ ! -f $BUILD_DIR/nuget.exe ]; then
	wget https://nuget.org/nuget.exe -O$BUILD_DIR/nuget.exe
fi

mono $BUILD_DIR/nuget.exe install Mono.TextTransform -OutputDirectory $BUILD_DIR/../deps

cd $BUILD_DIR/..

if [ -n "$TRAVIS_BUILD_DIR" ]; then
BUILD_DIR=$TRAVIS_BUILD_DIR/build
fi;

if [ -n "$BUILD_SOURCESDIRECTORY" ]; then
BUILD_DIR=$BUILD_SOURCESDIRECTORY/build
fi

cd $BUILD_DIR/../objcgen
./system-dependencies.sh --provision

OS=$(uname -s)
if [ "$OS" == "Darwin" ]; then
	export PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bin
fi

cd $BUILD_DIR
if [ ! -f $BUILD_DIR/nuget.exe ]; then
	curl https://nuget.org/nuget.exe -o $BUILD_DIR/nuget.exe
fi

mono $BUILD_DIR/nuget.exe install Mono.TextTransform -OutputDirectory $BUILD_DIR/../deps

cd $BUILD_DIR/..

Use curl instead of wget since the former is provided by default in macOS.
[ci] Use curl instead of wget since the former is provided by default in macOS.
