Skip to content

Commit

Permalink
A bit smarter more informative clean cycle
Browse files Browse the repository at this point in the history
As noted in surge-synthesizer#176, clean cleaned, but it was a bit oblique about
the actions it was taking. So add a few echos. Also, if you don't
have xcode assets, don't build them just so you can clean them.


Former-commit-id: f48dc1e
Former-commit-id: 0a10726489dd32eed5a1138c4e2e9175b741a1be
  • Loading branch information
baconpaul committed Dec 27, 2018
1 parent 1c22425 commit 644ac9f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ run_premake_if()
run_clean()
{
flavor=$1
echo
echo "Cleaning build - $flavor"
xcodebuild clean -configuration Release -project surge-${flavor}.xcodeproj
}

Expand Down Expand Up @@ -178,7 +180,13 @@ run_build_validate_au()

run_clean_builds()
{
run_premake_if
if [ ! -d "Surge.xcworkspace" ]; then
echo "No surge workspace; no builds to clean"
return 0
else
echo "Clean build on all flavors"
fi

if [ -d "surge-vst2.xcodeproj" ]; then
run_clean "vst2"
fi
Expand All @@ -190,6 +198,8 @@ run_clean_builds()
run_clean_all()
{
run_clean_builds

echo "Cleaning additional assets (directories, XCode, etc)"
rm -rf Surge.xcworkspace *xcodeproj target products build_logs obj
}

Expand Down

0 comments on commit 644ac9f

Please sign in to comment.