Simplest way to have chapter bibliographies in Latex documents

When writing long documents in LateX like Thesis or books you might want to implement bibliographies on a chapter by chapter basis. This end of chapter bibliographies can be achieved using the bibunits1 package. Here’s an example

References to some work~\cite{Rodrigues:2014}
that is of the most scientific interest and
is based on his previous work~\cite{Rodrigues:2012}.
\section{The End}
A new section with a new bibligaphy~\cite{Rodrigues:2013} 
at the end, but all the science of complexity
any human could have~\cite{Rodrigues:2010}.

The main trick is to define how to divide the bibliographies and to compile each of the sub bibliography files generated by latex. Read the documentation for details!