@webology I would add that people should make sure the books they're donating are up to date enough that it's worth students' time to learn from them.
When I dealt with donations of tech books as a teacher, we spent a fair bit of time filtering out books that were good, but outdated enough that they'd only lead to frustration for students.