Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,18 @@ do
shift
done

echo "Running init-tools.sh"
$WorkingTreeRoot/init-tools.sh

if [ -n "$CleanTargets" ]
then
echo "Running MSBuild target(s): ${CleanTargets:0:-1}"
echo -e "\n$WorkingTreeRoot/Tools/corerun $WorkingTreeRoot/Tools/MSBuild.exe $WorkingTreeRoot/build.proj /t:${CleanTargets:0:-1} /nologo /verbosity:minimal /flp:v=detailed;Append;LogFile=$CleanLog" >> $CleanLog
$WorkingTreeRoot/Tools/corerun $WorkingTreeRoot/Tools/MSBuild.exe $WorkingTreeRoot/build.proj /t:${CleanTargets:0:-1} /nologo /verbosity:minimal "/flp:v=detailed;Append;LogFile=$CleanLog"
# Ensure that MSBuild is available
echo "Running init-tools.sh"
$WorkingTreeRoot/init-tools.sh

# Trim the trailing semicolon from the targets string
CleanTargetsTrimmed=${CleanTargets:0:${#CleanTargets}-1}

echo "Running MSBuild target(s): $CleanTargetsTrimmed"
echo -e "\n$WorkingTreeRoot/Tools/corerun $WorkingTreeRoot/Tools/MSBuild.exe $WorkingTreeRoot/build.proj /t:$CleanTargetsTrimmed /nologo /verbosity:minimal /flp:v=detailed;Append;LogFile=$CleanLog" >> $CleanLog
$WorkingTreeRoot/Tools/corerun $WorkingTreeRoot/Tools/MSBuild.exe $WorkingTreeRoot/build.proj /t:$CleanTargetsTrimmed /nologo /verbosity:minimal "/flp:v=detailed;Append;LogFile=$CleanLog"
check_exit_status
fi

Expand Down