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

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

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