diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-04-10 01:32:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 01:32:08 +0300 |
commit | b5bcec428eefe79d9ce3f36ee02332a0b3447085 (patch) | |
tree | c6342577558e959512be205a372b29b69f761634 /mcs/Makefile | |
parent | 8eb6dae51351ba2c7f4a7efc9e369ebd96f63ac4 (diff) |
[ci] Update csproj files during PRs (#8052)
* [ci] Update csproj files during PRs
Similar to how API diff is done.
Replace EXTERNAL_DRAWING_FACADE in csproj in genproj
It'd embed the absolute path in the csproj, but we want the variable instead.
* [csproj] Update project files
Diffstat (limited to 'mcs/Makefile')
-rw-r--r-- | mcs/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mcs/Makefile b/mcs/Makefile index f04c9e0bf74..555a85e826f 100644 --- a/mcs/Makefile +++ b/mcs/Makefile @@ -179,3 +179,11 @@ mono-api-diff: @mkdir -p apidiff $(Q) sed -e "/@diffdata@/r temp.patch" -e "/@diffdata@/d" -e "s/@title@/Public API Diff/g" -e "s/@description@/If the changes are intentional, run <code>make -C mcs mono-api-diff<\/code> locally and commit changes in external\/api-snapshot./g" diff.html.in > apidiff/index.html $(Q) if [ -s temp.patch ]; then echo "Error: Found public API differences, see mcs/apidiff/index.html. If the changes are intentional, please go to external/api-snapshot and commit them."; rm -f temp.patch; exit 1; else echo "No differences found."; rm -f temp.patch; fi + +mono-csproj-diff: + @echo "Generating csproj diff..." + $(Q) git add -A "*.csproj" $(topdir)../bcl.sln + $(Q) git diff --no-renames HEAD "*.csproj" $(topdir)../bcl.sln > $(abspath $(topdir))/temp.patch + @mkdir -p csprojdiff + $(Q) sed -e "/@diffdata@/r temp.patch" -e "/@diffdata@/d" -e "s/@title@/Project Files Diff/g" -e "s/@description@/Use <code>@monojenkins commit csproj<\/code> to commit them./g" diff.html.in > csprojdiff/index.html + $(Q) if [ -s temp.patch ]; then echo "Error: Found csproj differences, see mcs/csprojdiff/index.html. If the changes are intentional, please commit them."; rm -f temp.patch; exit 1; else echo "No differences found."; rm -f temp.patch; fi |