Enable support for minimal rebuilds.

--HG--
extra : rebase_source : 8894728cf5fa3a272d11e6c3bb75a1f96bda4e7b
Removed unused test files.
Backed out changeset: 5c4d6666125a
Added a pattern which forces LF line endings for *.sh files.