Using Ant, I would like to clear the directory of all files with the extension '.dcu', for which there is a file that has the same base name with the extension '.pas'.
I cannot just delete all .dcu files - some of them cannot be restored by compilation from the source, because there is no corresponding .pas file.
How can I do that?
source share