core/pkgs/build-support/dotnet/dotnetbuildhelpers/placate-paket.sh

8 lines
341 B
Bash
Raw Permalink Normal View History

2024-05-02 00:46:19 +00:00
#!/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 {} \;