#!/bin/tcsh
cd Foundation
xcodebuild -project Foundation.xcodeproj -configuration WildMagic -target "Static Debug" clean
cd ..

cd Renderers/AglRenderer
xcodebuild -project AglRenderer.xcodeproj -configuration WildMagic -target "Static Debug" clean
cd ../..

cd Applications/AglApplication
xcodebuild -project AglApplication.xcodeproj -configuration WildMagic -target "Static Debug" clean
cd ../..

cd SampleGraphics
set DIRS = `ls`
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -project $dir.xcodeproj -configuration WildMagic -target "Static Debug" clean
        cd ..
    endif
end
cd ..

cd SampleImagics
set DIRS = `ls `
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Debug" clean
        cd ..
    endif
end
cd ..

cd SampleMiscellaneous
set DIRS = `ls `
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Debug" clean
        cd ..
    endif
end
cd ..

cd SamplePhysics
set DIRS = `ls `
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Debug" clean
        cd ..
    endif
end
cd ..

cd SampleShaders
set DIRS = `ls `
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Debug" clean
        cd ..
    endif
end
cd ..

