#!/bin/tcsh
mkdir -p ../Include
mkdir -p ../Library
mkdir -p ../Library/Release

set DIRS = `ls`
foreach dir (${DIRS})
    if (-d $dir && $dir != ${PROJECT_NAME}.xcode && $dir != ${PROJECT_NAME}.xcodeproj && $dir != build) then
        echo $dir
        cd $dir
        set CURDIR = `pwd`
        set HEADERS = `ls *.h *.inl *.mcr`
        foreach header (${HEADERS})
            cp -f ${CURDIR}/$header ../../Include
        end
        cd ..
    endif
end

cp -f ${SRCROOT}/WildMagic3.h ../Include/WildMagic3.h

cp -f ${SRCROOT}/build/libWm3${PROJECT_NAME}Release.a ../Library/Release/libWm3${PROJECT_NAME}Release.a
ranlib ../Library/Release/libWm3${PROJECT_NAME}Release.a

