Remove version information from NuGet folder names

This makes the names consistent and prevents changes in versions of
dependencies from breaking the build.
This commit is contained in:
Robin Neatherway
2015-04-09 16:30:38 +01:00
parent 70c9bca847
commit 2dba45ebac
3 changed files with 101 additions and 101 deletions

View File

@@ -9,36 +9,36 @@ fi
if [ ! -f windows/SDL2.dll ]; then if [ ! -f windows/SDL2.dll ]; then
echo "Fetching SDL2 from nuget" echo "Fetching SDL2 from nuget"
nuget install sdl2 -Version 2.0.3 nuget install sdl2 -Version 2.0.3 -ExcludeVersion
cp ./sdl2.redist.2.0.3/build/native/bin/Win32/dynamic/SDL2.dll ./windows/ cp ./sdl2.redist/build/native/bin/Win32/dynamic/SDL2.dll ./windows/
rm -rf sdl2.2.0.3 sdl2.redist.2.0.3 rm -rf sdl2.2.0.3 sdl2.redist
fi fi
if [ ! -f windows/freetype6.dll ]; then if [ ! -f windows/freetype6.dll ]; then
echo "Fetching FreeType2 from nuget" echo "Fetching FreeType2 from nuget"
nuget install freetype2.redist -Version 2.4.11.3 nuget install freetype2.redist -Version 2.4.11.3 -ExcludeVersion
cp ./freetype2.redist.2.4.11.3/bin/win32/zlib1.dll ./windows/ cp ./freetype2.redist/bin/win32/zlib1.dll ./windows/
cp ./freetype2.redist.2.4.11.3/bin/win32/freetype6.dll ./windows/ cp ./freetype2.redist/bin/win32/freetype6.dll ./windows/
rm -rf freetype2.redist.2.4.11.3 rm -rf freetype2.redist
fi fi
if [ ! -f windows/lua51.dll ]; then if [ ! -f windows/lua51.dll ]; then
echo "Fetching Lua 5.1 from nuget" echo "Fetching Lua 5.1 from nuget"
nuget install lua.binaries -Version 5.1.5 nuget install lua.binaries -Version 5.1.5 -ExcludeVersion
cp ./lua.binaries.5.1.5/bin/win32/dll8/lua5.1.dll ./windows/lua51.dll cp ./lua.binaries/bin/win32/dll8/lua5.1.dll ./windows/lua51.dll
rm -rf lua.binaries.5.1.5 rm -rf lua.binaries
fi fi
if [ ! -f windows/zlib1.dll ]; then if [ ! -f windows/zlib1.dll ]; then
echo "Fetching ZLib from nuget" echo "Fetching ZLib from nuget"
nuget install freetype2.redist -Version 2.4.11.3 nuget install freetype2.redist -Version 2.4.11.3 -ExcludeVersion
cp ./freetype2.redist.2.4.11.3/bin/win32/zlib1.dll ./windows/ cp ./freetype2.redist/bin/win32/zlib1.dll ./windows/
rm -rf freetype2.redist.2.4.11.3 rm -rf freetype2.redist
fi fi
if [ ! -f windows/soft_oal.dll ]; then if [ ! -f windows/soft_oal.dll ]; then
echo "Fetching OpenAL Soft from nuget" echo "Fetching OpenAL Soft from nuget"
nuget install OpenAL-Soft -Version 1.16.0 nuget install OpenAL-Soft -Version 1.16.0 -ExcludeVersion
cp ./OpenAL-Soft.1.16.0/bin/Win32/soft_oal.dll windows/soft_oal.dll cp ./OpenAL-Soft/bin/Win32/soft_oal.dll windows/soft_oal.dll
rm -rf OpenAL-Soft.1.16.0 rm -rf OpenAL-Soft
fi fi

View File

@@ -12,120 +12,120 @@ if (!(Test-Path "nuget.exe"))
if (!(Test-Path "StyleCopPlus.dll")) if (!(Test-Path "StyleCopPlus.dll"))
{ {
echo "Fetching StyleCopPlus from NuGet." echo "Fetching StyleCopPlus from NuGet."
./nuget.exe install StyleCopPlus.MSBuild -Version 4.7.49.5 ./nuget.exe install StyleCopPlus.MSBuild -Version 4.7.49.5 -ExcludeVersion
cp StyleCopPlus.MSBuild.4.7.49.5/tools/StyleCopPlus.dll . cp StyleCopPlus.MSBuild/tools/StyleCopPlus.dll .
rmdir StyleCopPlus.MSBuild.4.7.49.5 -Recurse rmdir StyleCopPlus.MSBuild -Recurse
} }
if (!(Test-Path "StyleCop.dll")) if (!(Test-Path "StyleCop.dll"))
{ {
echo "Fetching StyleCop files from NuGet." echo "Fetching StyleCop files from NuGet."
./nuget.exe install StyleCop.MSBuild -Version 4.7.49.0 ./nuget.exe install StyleCop.MSBuild -Version 4.7.49.0 -ExcludeVersion
cp StyleCop.MSBuild.4.7.49.0/tools/StyleCop*.dll . cp StyleCop.MSBuild/tools/StyleCop*.dll .
rmdir StyleCop.MSBuild.4.7.49.0 -Recurse rmdir StyleCop.MSBuild -Recurse
} }
if (!(Test-Path "ICSharpCode.SharpZipLib.dll")) if (!(Test-Path "ICSharpCode.SharpZipLib.dll"))
{ {
echo "Fetching ICSharpCode.SharpZipLib from NuGet." echo "Fetching ICSharpCode.SharpZipLib from NuGet."
./nuget.exe install SharpZipLib -Version 0.86.0 ./nuget.exe install SharpZipLib -Version 0.86.0 -ExcludeVersion
cp SharpZipLib.0.86.0/lib/20/ICSharpCode.SharpZipLib.dll . cp SharpZipLib/lib/20/ICSharpCode.SharpZipLib.dll .
rmdir SharpZipLib.0.86.0 -Recurse rmdir SharpZipLib -Recurse
} }
if (!(Test-Path "MaxMind.GeoIP2.dll")) if (!(Test-Path "MaxMind.GeoIP2.dll"))
{ {
echo "Fetching MaxMind.GeoIP2 from NuGet." echo "Fetching MaxMind.GeoIP2 from NuGet."
./nuget.exe install MaxMind.GeoIP2 -Version 2.1.0 ./nuget.exe install MaxMind.GeoIP2 -Version 2.1.0 -ExcludeVersion
cp MaxMind.Db.1.0.0.0/lib/net40/MaxMind.Db.* . cp MaxMind.Db/lib/net40/MaxMind.Db.* .
rmdir MaxMind.Db.1.0.0.0 -Recurse rmdir MaxMind.Db -Recurse
cp MaxMind.GeoIP2.2.1.0.0/lib/net40/MaxMind.GeoIP2* . cp MaxMind.GeoIP2/lib/net40/MaxMind.GeoIP2* .
rmdir MaxMind.GeoIP2.2.1.0.0 -Recurse rmdir MaxMind.GeoIP2 -Recurse
cp Newtonsoft.Json.6.0.5/lib/net40/Newtonsoft.Json* . cp Newtonsoft.Json/lib/net40/Newtonsoft.Json* .
rmdir Newtonsoft.Json.6.0.5 -Recurse rmdir Newtonsoft.Json -Recurse
cp RestSharp.105.0.0/lib/net4-client/RestSharp* . cp RestSharp/lib/net4-client/RestSharp* .
rmdir RestSharp.105.0.0 -Recurse rmdir RestSharp -Recurse
} }
if (!(Test-Path "SharpFont.dll")) if (!(Test-Path "SharpFont.dll"))
{ {
echo "Fetching SharpFont from NuGet." echo "Fetching SharpFont from NuGet."
./nuget.exe install SharpFont -Version 2.5.0.1 ./nuget.exe install SharpFont -Version 2.5.0.1 -ExcludeVersion
cp SharpFont.2.5.0.1/lib/net20/SharpFont* . cp SharpFont/lib/net20/SharpFont* .
cp SharpFont.2.5.0.1/Content/SharpFont.dll.config . cp SharpFont/Content/SharpFont.dll.config .
rmdir SharpFont.2.5.0.1 -Recurse rmdir SharpFont -Recurse
} }
if (!(Test-Path "nunit.framework.dll")) if (!(Test-Path "nunit.framework.dll"))
{ {
echo "Fetching NUnit from NuGet." echo "Fetching NUnit from NuGet."
./nuget.exe install NUnit -Version 2.6.4 ./nuget.exe install NUnit -Version 2.6.4 -ExcludeVersion
cp NUnit.2.6.4/lib/nunit.framework* . cp NUnit/lib/nunit.framework* .
rmdir NUnit.2.6.4 -Recurse rmdir NUnit -Recurse
} }
if (!(Test-Path "windows/SDL2.dll")) if (!(Test-Path "windows/SDL2.dll"))
{ {
echo "Fetching SDL2 from NuGet." echo "Fetching SDL2 from NuGet."
./nuget.exe install sdl2 -Version 2.0.3 ./nuget.exe install sdl2 -Version 2.0.3 -ExcludeVersion
cp sdl2.redist.2.0.3/build/native/bin/Win32/dynamic/SDL2.dll ./windows/ cp sdl2.redist/build/native/bin/Win32/dynamic/SDL2.dll ./windows/
rmdir sdl2.2.0.3 -Recurse rmdir sdl2 -Recurse
rmdir sdl2.redist.2.0.3 -Recurse rmdir sdl2.redist -Recurse
} }
if (!(Test-Path "Mono.Nat.dll")) if (!(Test-Path "Mono.Nat.dll"))
{ {
echo "Fetching Mono.Nat from NuGet." echo "Fetching Mono.Nat from NuGet."
./nuget.exe install Mono.Nat -Version 1.2.21 ./nuget.exe install Mono.Nat -Version 1.2.21 -ExcludeVersion
cp Mono.Nat.1.2.21.0/lib/net40/Mono.Nat.dll . cp Mono.Nat/lib/net40/Mono.Nat.dll .
rmdir Mono.Nat.1.2.21.0 -Recurse rmdir Mono.Nat -Recurse
} }
if (!(Test-Path "windows/lua51.dll")) if (!(Test-Path "windows/lua51.dll"))
{ {
echo "Fetching Lua 5.1 from NuGet." echo "Fetching Lua 5.1 from NuGet."
./nuget.exe install lua.binaries -Version 5.1.5 ./nuget.exe install lua.binaries -Version 5.1.5 -ExcludeVersion
cp lua.binaries.5.1.5/bin/win32/dll8/lua5.1.dll ./windows/lua51.dll cp lua.binaries/bin/win32/dll8/lua5.1.dll ./windows/lua51.dll
rmdir lua.binaries.5.1.5 -Recurse rmdir lua.binaries -Recurse
} }
if (!(Test-Path "windows/freetype6.dll")) if (!(Test-Path "windows/freetype6.dll"))
{ {
echo "Fetching FreeType2 from NuGet." echo "Fetching FreeType2 from NuGet."
./nuget.exe install freetype2.redist -Version 2.4.11.3 ./nuget.exe install freetype2.redist -Version 2.4.11.3 -ExcludeVersion
cp freetype2.redist.2.4.11.3/bin/win32/zlib1.dll ./windows/zlib1.dll cp freetype2.redist/bin/win32/zlib1.dll ./windows/zlib1.dll
cp freetype2.redist.2.4.11.3/bin/win32/freetype6.dll ./windows/freetype6.dll cp freetype2.redist/bin/win32/freetype6.dll ./windows/freetype6.dll
rmdir freetype2.redist.2.4.11.3 -Recurse rmdir freetype2.redist -Recurse
} }
if (!(Test-Path "windows/zlib1.dll")) if (!(Test-Path "windows/zlib1.dll"))
{ {
echo "Fetching ZLib from NuGet." echo "Fetching ZLib from NuGet."
./nuget.exe install freetype2.redist -Version 2.4.11.3 ./nuget.exe install freetype2.redist -Version 2.4.11.3 -ExcludeVersion
cp freetype2.redist.2.4.11.3/bin/win32/zlib1.dll ./windows/zlib1.dll cp freetype2.redist/bin/win32/zlib1.dll ./windows/zlib1.dll
rmdir freetype2.redist.2.4.11.3 -Recurse rmdir freetype2.redist -Recurse
} }
if (!(Test-Path "windows/soft_oal.dll")) if (!(Test-Path "windows/soft_oal.dll"))
{ {
echo "Fetching OpenAL Soft from NuGet." echo "Fetching OpenAL Soft from NuGet."
./nuget.exe install OpenAL-Soft -Version 1.16.0 ./nuget.exe install OpenAL-Soft -Version 1.16.0 -ExcludeVersion
cp OpenAL-Soft.1.16.0/bin/Win32/soft_oal.dll windows/soft_oal.dll cp OpenAL-Soft/bin/Win32/soft_oal.dll windows/soft_oal.dll
rmdir OpenAL-Soft.1.16.0 -Recurse rmdir OpenAL-Soft -Recurse
} }
if (!(Test-Path "Moq.dll")) if (!(Test-Path "Moq.dll"))
{ {
echo "Fetching Moq from NuGet." echo "Fetching Moq from NuGet."
./nuget.exe install Moq -Version 4.2.1502.0911 ./nuget.exe install Moq -Version 4.2.1502.0911 -ExcludeVersion
cp Moq.4.2.1502.0911/lib/net40/Moq.dll . cp Moq/lib/net40/Moq.dll .
rmdir Moq.4.2.1502.0911 -Recurse rmdir Moq -Recurse
} }
if (!(Test-Path "FuzzyLogicLibrary.dll")) if (!(Test-Path "FuzzyLogicLibrary.dll"))
{ {
echo "Fetching FuzzyLogicLibrary from NuGet." echo "Fetching FuzzyLogicLibrary from NuGet."
./nuget.exe install FuzzyLogicLibrary -Version 1.2.0 ./nuget.exe install FuzzyLogicLibrary -Version 1.2.0 -ExcludeVersion
cp FuzzyLogicLibrary.1.2.0/bin/Release/FuzzyLogicLibrary.dll . cp FuzzyLogicLibrary/bin/Release/FuzzyLogicLibrary.dll .
rmdir FuzzyLogicLibrary.1.2.0 -Recurse rmdir FuzzyLogicLibrary -Recurse
} }

View File

@@ -5,70 +5,70 @@ set -e
if [ ! -f StyleCopPlus.dll ]; then if [ ! -f StyleCopPlus.dll ]; then
echo "Fetching StyleCopPlus from nuget" echo "Fetching StyleCopPlus from nuget"
nuget install StyleCopPlus.MSBuild -Version 4.7.49.5 nuget install StyleCopPlus.MSBuild -Version 4.7.49.5 -ExcludeVersion
cp ./StyleCopPlus.MSBuild.4.7.49.5/tools/StyleCopPlus.dll . cp ./StyleCopPlus.MSBuild/tools/StyleCopPlus.dll .
rm -rf StyleCopPlus.MSBuild.4.7.49.5 rm -rf StyleCopPlus.MSBuild
fi fi
if [ ! -f StyleCop.dll ]; then if [ ! -f StyleCop.dll ]; then
echo "Fetching StyleCop files from nuget" echo "Fetching StyleCop files from nuget"
nuget install StyleCop.MSBuild -Version 4.7.49.0 nuget install StyleCop.MSBuild -Version 4.7.49.0 -ExcludeVersion
cp ./StyleCop.MSBuild.4.7.49.0/tools/StyleCop*.dll . cp ./StyleCop.MSBuild/tools/StyleCop*.dll .
rm -rf StyleCop.MSBuild.4.7.49.0 rm -rf StyleCop.MSBuild
fi fi
if [ ! -f ICSharpCode.SharpZipLib.dll ]; then if [ ! -f ICSharpCode.SharpZipLib.dll ]; then
echo "Fetching ICSharpCode.SharpZipLib from nuget" echo "Fetching ICSharpCode.SharpZipLib from nuget"
nuget install SharpZipLib -Version 0.86.0 nuget install SharpZipLib -Version 0.86.0 -ExcludeVersion
cp ./SharpZipLib.0.86.0/lib/20/ICSharpCode.SharpZipLib.dll . cp ./SharpZipLib/lib/20/ICSharpCode.SharpZipLib.dll .
rm -rf SharpZipLib.0.86.0 rm -rf SharpZipLib
fi fi
if [ ! -f MaxMind.GeoIP2.dll ]; then if [ ! -f MaxMind.GeoIP2.dll ]; then
echo "Fetching MaxMind.GeoIP2 from nuget" echo "Fetching MaxMind.GeoIP2 from nuget"
nuget install MaxMind.GeoIP2 -Version 2.1.0 nuget install MaxMind.GeoIP2 -Version 2.1.0 -ExcludeVersion
cp ./MaxMind.Db.1.0.0.0/lib/net40/MaxMind.Db.* . cp ./MaxMind.Db/lib/net40/MaxMind.Db.* .
rm -rf MaxMind.Db.1.0.0.0 rm -rf MaxMind.Db
cp ./MaxMind.GeoIP2.2.1.0.0/lib/net40/MaxMind.GeoIP2* . cp ./MaxMind.GeoIP2/lib/net40/MaxMind.GeoIP2* .
rm -rf MaxMind.GeoIP2.2.1.0.0 rm -rf MaxMind.GeoIP2
cp ./Newtonsoft.Json.6.0.5/lib/net40/Newtonsoft.Json* . cp ./Newtonsoft.Json/lib/net40/Newtonsoft.Json* .
rm -rf Newtonsoft.Json.6.0.5 rm -rf Newtonsoft.Json
cp ./RestSharp.105.0.0/lib/net4-client/RestSharp* . cp ./RestSharp/lib/net4-client/RestSharp* .
rm -rf RestSharp.105.0.0 rm -rf RestSharp
fi fi
if [ ! -f SharpFont.dll ]; then if [ ! -f SharpFont.dll ]; then
echo "Fetching SharpFont from nuget" echo "Fetching SharpFont from nuget"
nuget install SharpFont -Version 2.5.0.1 nuget install SharpFont -Version 2.5.0.1 -ExcludeVersion
cp ./SharpFont.2.5.0.1/lib/net20/SharpFont* . cp ./SharpFont/lib/net20/SharpFont* .
sed '/osx/s@\(dll="\)[^"]*\(" />\)@\1/Library/Frameworks/Mono.framework/Libraries/libfreetype.6.dylib\2@' ./SharpFont.2.5.0.1/Content/SharpFont.dll.config > SharpFont.dll.config sed '/osx/s@\(dll="\)[^"]*\(" />\)@\1/Library/Frameworks/Mono.framework/Libraries/libfreetype.6.dylib\2@' ./SharpFont/Content/SharpFont.dll.config > SharpFont.dll.config
rm -rf SharpFont.2.5.0.1 rm -rf SharpFont
fi fi
if [ ! -f nunit.framework.dll ]; then if [ ! -f nunit.framework.dll ]; then
echo "Fetching NUnit from nuget" echo "Fetching NUnit from nuget"
nuget install NUnit -Version 2.6.4 nuget install NUnit -Version 2.6.4 -ExcludeVersion
cp ./NUnit.2.6.4/lib/nunit.framework* . cp ./NUnit/lib/nunit.framework* .
rm -rf NUnit.2.6.4 rm -rf NUnit
fi fi
if [ ! -f Mono.Nat.dll ]; then if [ ! -f Mono.Nat.dll ]; then
echo "Fetching Mono.Nat from nuget" echo "Fetching Mono.Nat from nuget"
nuget install Mono.Nat -Version 1.2.21 nuget install Mono.Nat -Version 1.2.21 -ExcludeVersion
cp ./Mono.Nat.1.2.21.0/lib/net40/Mono.Nat.dll . cp ./Mono.Nat/lib/net40/Mono.Nat.dll .
rm -rf Mono.Nat.1.2.21.0 rm -rf Mono.Nat
fi fi
if [ ! -f Moq.dll ]; then if [ ! -f Moq.dll ]; then
echo "Fetching Moq from NuGet." echo "Fetching Moq from NuGet."
nuget install Moq -Version 4.2.1502.0911 nuget install Moq -Version 4.2.1502.0911 -ExcludeVersion
cp ./Moq.4.2.1502.0911/lib/net40/Moq.dll . cp ./Moq/lib/net40/Moq.dll .
rm -rf Moq.4.2.1502.0911 rm -rf Moq
fi fi
if [ ! -f FuzzyLogicLibrary.dll ]; then if [ ! -f FuzzyLogicLibrary.dll ]; then
echo "Fetching FuzzyLogicLibrary from NuGet." echo "Fetching FuzzyLogicLibrary from NuGet."
nuget install FuzzyLogicLibrary -Version 1.2.0 nuget install FuzzyLogicLibrary -Version 1.2.0 -ExcludeVersion
cp ./FuzzyLogicLibrary.1.2.0/bin/Release/FuzzyLogicLibrary.dll . cp ./FuzzyLogicLibrary/bin/Release/FuzzyLogicLibrary.dll .
rm -rf FuzzyLogicLibrary.1.2.0 rm -rf FuzzyLogicLibrary
fi fi