зеркало из https://github.com/Azure/DotNetty.git
32 строки
1.1 KiB
Bash
32 строки
1.1 KiB
Bash
#!/bin/bash
|
|
|
|
SCRIPT_PATH="${BASH_SOURCE[0]}";
|
|
if ([ -h "${SCRIPT_PATH}" ]) then
|
|
while([ -h "${SCRIPT_PATH}" ]) do SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done
|
|
fi
|
|
pushd . > /dev/null
|
|
cd `dirname ${SCRIPT_PATH}` > /dev/null
|
|
SCRIPT_PATH=`pwd`;
|
|
popd > /dev/null
|
|
|
|
if ! [ -f $SCRIPT_PATH/.nuget/nuget.exe ]
|
|
then
|
|
wget "https://www.nuget.org/nuget.exe" -P $SCRIPT_PATH/.nuget/
|
|
fi
|
|
|
|
mono $SCRIPT_PATH/.nuget/nuget.exe update -self
|
|
|
|
mono $SCRIPT_PATH/.nuget/nuget.exe install FAKE -OutputDirectory $SCRIPT_PATH/packages -ExcludeVersion -Version 4.25.4
|
|
|
|
mono $SCRIPT_PATH/.nuget/nuget.exe install xunit.runners -OutputDirectory $SCRIPT_PATH/packages/FAKE -ExcludeVersion -Version 2.1.0
|
|
mono $SCRIPT_PATH/.nuget/nuget.exe install NBench.Runner -OutputDirectory packages -ExcludeVersion -Version 0.2.2
|
|
|
|
if ! [ -e $SCRIPT_PATH/packages/SourceLink.Fake/tools/SourceLink.fsx ] ; then
|
|
mono $SCRIPT_PATH/.nuget/nuget.exe install SourceLink.Fake -OutputDirectory $SCRIPT_PATH/packages -ExcludeVersion
|
|
|
|
fi
|
|
|
|
export encoding=utf-8
|
|
|
|
mono $SCRIPT_PATH/packages/FAKE/tools/FAKE.exe build.fsx "$@"
|