summary refs log tree commit diff
path: root/pkgs/build-support/dotnetbuildhelpers/placate-nuget.sh
blob: 8a7f36522a3ddcd981aeb8fc189ea5e4fe59c971 (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env bash

echo Placating Nuget in nuget.targets
find -iname nuget.targets -print -exec sed --in-place=bak -e 's,mono --runtime[^<]*,true NUGET PLACATED BY buildDotnetPackage,g' {} \;

echo Just to be sure, replacing Nuget executables by empty files.
find . -iname nuget.exe \! -size 0 -exec mv -v {} {}.bak \; -exec touch {} \;